-
Can the bus be shared between multiple threads? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
I have an idea of wrapping an bus connection in a separate thread that runs an event loop and then making all methods use |
Beta Was this translation helpful? Give feedback.
The underlying library
libsystemd
is 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.