diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2021-12-26 08:31:02 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2021-12-26 13:45:09 +0100 |
commit | 7395d57b3c722229d18aa70fbee7e60a60902304 (patch) | |
tree | 29fc7c43174cf8d90b232f180b7698fe974895ef /decoders/rfm12/__init__.py | |
parent | 7cfa9f7aa2426c617990f3ecfcabed8765aff46c (diff) | |
download | libsigrokdecode-7395d57b3c722229d18aa70fbee7e60a60902304.tar.gz libsigrokdecode-7395d57b3c722229d18aa70fbee7e60a60902304.zip |
ir_irmp: Python binding, support instance locking and context manager
Extend the ctypes wrapper for the IRMP decoder core. Add routines for
the instance state creation and lock management. Implement metamethods
for Python context managers which lock the instance to protect the C
library's internal state from changing unexpectedly. Add my copyright
for the non-trivial changes.
This commit eliminates the limitation to a single IRMP decoder core for
the sigrok process to use. Multiple Python callers can synchronize their
library use, and see a consistent library state across the scope of the
context manager. It's essential though that callers leave the context
to not block other callers for extended periods of time.
Diffstat (limited to 'decoders/rfm12/__init__.py')
0 files changed, 0 insertions, 0 deletions