diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-03-05 18:09:59 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-03-12 14:59:28 +0100 |
commit | 04383ea876df72b7bd5c19854c30c81abdc0aa0c (patch) | |
tree | 560cdd0b49b9931fd8bc996db39561a5c231a68a /decoders/dmx512/pd.py | |
parent | 1ec8b3acd2ef4e857110e536b40377e6f645b89f (diff) | |
download | libsigrokdecode-04383ea876df72b7bd5c19854c30c81abdc0aa0c.tar.gz libsigrokdecode-04383ea876df72b7bd5c19854c30c81abdc0aa0c.zip |
decoder: terminate .wait() and .decode(), join threads for v3 instances
Add support to terminate blocking .wait() and .decode() method calls of
v3 decoder instances. This terminates the decoder thread's main routine
and allows to release associated resources. Cope with requested as well
as unexpected termination of decode() calls. Add debug messages to
thread related code paths.
Make sure to unblock the main thread which feeds the decoder thread.
This unbreaks situations where decoders e.g. throw "need samplerate to
decode" exceptions.
Drain Python errors which might remain from the most recent .decode()
execution, to not affect other code paths. This avoids an issue where
the creation of a new decoder instance fails in the presence of errors
from a previous run.
This fixes bug #902.
Diffstat (limited to 'decoders/dmx512/pd.py')
0 files changed, 0 insertions, 0 deletions