Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Submission is not thread safe

Hello,

I'm using C implementation of Paho library, and my program (https://github.com/destroyedlolo/Marcel) is creating several threads to survey topics values : this tool aims to raise alerts if they are out of margin (as example, it send me an SMS if my photo-voltaic installation didn't produced anything for a day).

In a previous version, first I created childs threads and let them to subscribe to topics ... and my tool crashed at startup due to memory corruption or be disconnected from the broker.

Now, subscriptions is done in the main process and then threads are created : Marcel doesn't crash anymore.

I didn't find any document saying paho subscription is not thread safe, so my mail :)

Best regards,

Laurent

 ---
The misspelling master is on the Web.
  _________ 100 % Dictionnary Free !
/                    /(
/ Dico          / / Pleins d'autres fautes sur
/________ / /
(########( / http://destroyedlolo.info
Quoi, des fautes d'orthographe! Pas possible ;-D.

Back to the top