Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost interprocess message_queue thread-safe?
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2012-03-28 12:55:46


El 28/03/2012 14:06, Rajalakshmi Iyer escribió:
> Hello,
>
> I am trying to use the Boost Inter-process message queue and wanted to
> know the application needs to take care of synchronization.
>
> The documentation lists 'Message queues' under the 'Synchronization'
> section and mentions:
>
> 'A message queue is similar to a list of messages. Threads can put
> messages in the queue and they can also remove messages from the queue'
>
> So is the message queue thread-safe?
>
> My use case is several multi-threaded processes on a single host writing
> to the message queue and another multi-threaded process on the same host
> reading from the message queue.

yes, it's thread-safe

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net