diff options
author | Jiří Pinkava <j-pi@seznam.cz> | 2015-03-17 23:32:35 +0100 |
---|---|---|
committer | Jiří Pinkava <j-pi@seznam.cz> | 2015-04-01 14:35:05 +0200 |
commit | 2aded1af5e55dca76c0b9cd4476b083b8fd8d3f7 (patch) | |
tree | d2c51ac5e0b09723c0aebe581e5734d0ae48b64f /gr-blocks/python | |
parent | d817c5fd35dd71d5e4591f04d39e565935215ae9 (diff) |
runtime: fix wait() race condition
Func. wait() should wait until all work is completed, but should not
exit when block is locked()/unlocked() for flow-graph reconfiguration.
It is unprobable, but during unlock() thread context might be switched
after stop() is called but before new thread are executed by scheduller.
This can cause exit from wait() when it is called (eg. from Python
wrapper).
Call of stop() is moved into lock(), no new work should be started on
locked block and this gives threads some time to finish before join()
is called from unlock().
Diffstat (limited to 'gr-blocks/python')
0 files changed, 0 insertions, 0 deletions