Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubsub library not thread safe. #1055

Open
jonasbjurel opened this issue Apr 30, 2024 · 0 comments
Open

pubsub library not thread safe. #1055

jonasbjurel opened this issue Apr 30, 2024 · 0 comments

Comments

@jonasbjurel
Copy link

Super good MQTT library - kudos!
It appears that the library is not thread safe.
Introducing lock protecting buffer may be difficult while supporting all hardware .
I propose to solve this by documentation:
"The pubsub library is not thread safe, in case several threads use the library following methods need to be protected
from concurrent use:

  • connect()
  • disconnect()
  • publish()
  • loop()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant