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
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
mosquittoinstance but I wanted to explicitly ask if it's safe to callmosquitto_loop_forever()from one thread and library functions likemosquitto_publish_v5()andmosquitto_disconnect_v5()from other threads not created bylibmosquitto, as I think a strict definition of thread safe functions wouldn't make any promises about arguments passed to functions