diff options
author | Miloslav Trmač <mitr@redhat.com> | 2009-07-17 16:39:27 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2009-07-17 16:39:27 +0200 |
commit | 8c737c21ed85cccb729ed6761a63de6be0142800 (patch) | |
tree | 6b6ed0e9b5c91b0ff9e5136256092260668ae580 /plugins/plugin_examples/dialogue.py | |
parent | 6c6696cb1e2db2f36558845c5cf0c12ee2d332ed (diff) | |
download | firstaidkit-8c737c21ed85cccb729ed6761a63de6be0142800.tar.gz firstaidkit-8c737c21ed85cccb729ed6761a63de6be0142800.tar.xz firstaidkit-8c737c21ed85cccb729ed6761a63de6be0142800.zip |
* Replace Reports(round) by Reports(silent) to avoid a lock around all
queue operations, which causes an automatic deadlock on
a: get
a: ... lock _queue_lock
a: ... block on _queue
b: put
b: ... block on _queue_lock
Because nobody reads from the main queue that used round = True, this
doesn't change application behavior.
* Drop return value of Reports.put, it is always None anyway.
* Fix self._mailboxes locking: instead of
try:
lock
...
finally:
unlock
it needs to be
lock
try:
...
finally:
unlock
Diffstat (limited to 'plugins/plugin_examples/dialogue.py')
0 files changed, 0 insertions, 0 deletions