Skip to content

thread safety question #3715

Description

@sk-rinicom

I know that the library is described as thread safe here and I know that mosquitto_threaded_set() should be called if my application is using threads.

I can also see the simple publisher example doesn't mutex protect the mosquitto instance but I wanted to explicitly ask if it's safe to call mosquitto_loop_forever() from one thread and library functions like mosquitto_publish_v5() and mosquitto_disconnect_v5() from other threads not created by libmosquitto, as I think a strict definition of thread safe functions wouldn't make any promises about arguments passed to functions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: AvailableNo one has claimed responsibility for resolving this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions