Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Thread-safe Paho C messageArrived callback(Thread-safe Paho C messageArrived callback)
Thread-safe Paho C messageArrived callback [message #1753827] Fri, 10 February 2017 13:14 Go to next message
Manav Mehta is currently offline Manav MehtaFriend
Messages: 4
Registered: December 2016
Junior Member
I have a question on the Paho MQTT C client's messageArrived callback.

Does the Paho C client sequentially invoke the messageArrived callback so that it waits for one message to be processed (i.e. for the callback handler to return), before invoking the callback for the next message; or can it invoke them in parallel such that my application could have multiple messageArrived instances running in different threads?

I need to know whether or not to write thread-safe code inside my callback handler.
Re: Thread-safe Paho C messageArrived callback [message #1755069 is a reply to message #1753827] Mon, 27 February 2017 18:50 Go to previous message
Manav Mehta is currently offline Manav MehtaFriend
Messages: 4
Registered: December 2016
Junior Member
Just want to check back to see if anyone has any feedback on this question. From reviewing the Paho C client code ourselves, it appears to us that only one thread is created for processing all messages, but it would be nice to have confirmation from someone with knowledge on this subject.
Previous Topic:problems Android Studio with Paho.
Next Topic:syntax for auth with paho connecting to mqtt
Goto Forum:
  


Current Time: Mon Nov 19 19:24:20 GMT 2018

Powered by FUDForum. Page generated in 0.02280 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top