Fix #181 by changing the global decode lock into an SRD lock
authorSoeren Apel <soeren@apelpie.net>
Tue, 9 Feb 2016 13:48:31 +0000 (14:48 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 11 Feb 2016 14:08:08 +0000 (15:08 +0100)
The global decode was insufficient insofar as it didn't
prevent a newly started decode thread from interjecting its
own decode operations. When this happens, something goes
haywire somewhere and Python crashes.

Until the underlying cause is fixed, this global SRD lock
forces one decoder thread to finish before another one can
start.

While this is a bit inconvenient for wanting to decode as
the acquisition is going on, it currently is the only
working option.


No differences found