Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] In asynchronous mode questions.

Hi Laurent,

the callback functions run in the parallel thread.   You can use the standard pthread API for semaphores, yes. 

Why do you say that no pthread link is required?  The Linux build for the C library has a link to pthread.

Ian



On 06/02/2015 12:28 PM, Laurent FAILLIE wrote:
Hello,

As per the documentation, http://www.eclipse.org/paho/files/mqttdoc/Cclient/async.html, the communication handling is done in a parallel thread. But does the callback function running in this parallel thread or in the main process ?

If, as I think, it is in the parallel thread, how can I use semaphores ? Using standard pthread API ? I wonder as there is no explicit link to phread required.

Thanks

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.


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


Back to the top