All safe. The fetch removes the item from queue within a lock and then keeps it in the process space. It is no possible race for many processes to consume the same item.

Cheers,
Daniel

On 1/3/13 4:54 PM, Alex Balashov wrote:
Will multiple rtimer processes consuming the same mqueue, i.e. via a blocking mechanism

  while(mq_fetch(...))

... hurt anything?


--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to