diff options
author | Paul Jones <paulj@lshift.net> | 2009-08-26 12:33:08 +0100 |
---|---|---|
committer | Paul Jones <paulj@lshift.net> | 2009-08-26 12:33:08 +0100 |
commit | b0ac0ec44d39ac21053d7f4ccc4a47e41989bc98 (patch) | |
tree | 654aef4927925d67e7fe00b701ef903bbb6eac91 | |
parent | 6ebd401da6e46cee1bfff0836256c1a0114bbeaf (diff) | |
download | rabbitmq-server-b0ac0ec44d39ac21053d7f4ccc4a47e41989bc98.tar.gz |
Also check for a nowait field on synchronous recordsbug21493
-rw-r--r-- | codegen.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -119,7 +119,11 @@ def genErl(spec): print "method_has_content(%s) -> %s;" % (m.erlangName(), str(m.hasContent).lower()) def genMethodIsSynchronous(m): - print "is_method_synchronous(%s) -> %s;" % (m.erlangName(), str(m.isSynchronous).lower()) + hasNoWait = "nowait" in fieldNameList(m.arguments) + if m.isSynchronous and hasNoWait: + print "is_method_synchronous(#%s{nowait = NoWait}) -> not(NoWait);" % (m.erlangName()) + else: + print "is_method_synchronous(#%s{}) -> %s;" % (m.erlangName(), str(m.isSynchronous).lower()) def genMethodFieldTypes(m): """Not currently used - may be useful in future?""" |