Repository navigation
|
Can the bus be shared between multiple threads? |
Answered by
igo95862
May 26, 2024
Replies: 2 comments
|
The underlying library Therefore python-sdbus is not thread safe. To achieve concurrency use Python's asyncio which python-sdbus has full support of. |
0 replies
Answer selected by
igo95862
|
I have an idea of wrapping an bus connection in a separate thread that runs an event loop and then making all methods use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The underlying library
libsystemdis not thread safe: systemd/systemd#31589 (comment)Therefore python-sdbus is not thread safe. To achieve concurrency use Python's asyncio which python-sdbus has full support of.