-
|
Can the bus be shared between multiple threads? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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.