boost::interprocess::message_queue
Hello everyone, I am currently developing a multi-threading application and i would like to use a message queue to receive / send information between the different threads. However, I have tried to check if the boost message queue was thread-safe or not but i could not find the information. Can anyone tell me if the boost message queue is thread-safe? Thank you. Romain C. -- View this message in context: http://www.nabble.com/boost%3A%3Ainterprocess%3A%3Amessage_queue-tp20597994p... Sent from the Boost - Users mailing list archive at Nabble.com.
Romain C. wrote:
Hello everyone,
I am currently developing a multi-threading application and i would like to use a message queue to receive / send information between the different threads. However, I have tried to check if the boost message queue was thread-safe or not but i could not find the information.
Can anyone tell me if the boost message queue is thread-safe?
It is, but more oriented to interprocess-process communications than for intra-process thread communication. You might find it a bit heavyheight for this purpose.
Thank you.
Regards, Ion
Hey Ion, Thanks for your answer. I decided to use my own queue following this example: http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-... http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-... Hope it can help other people. Romain Ion Gaztañaga wrote:
Romain C. wrote:
Hello everyone,
I am currently developing a multi-threading application and i would like to use a message queue to receive / send information between the different threads. However, I have tried to check if the boost message queue was thread-safe or not but i could not find the information.
Can anyone tell me if the boost message queue is thread-safe?
It is, but more oriented to interprocess-process communications than for intra-process thread communication. You might find it a bit heavyheight for this purpose.
Thank you.
Regards,
Ion _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/boost%3A%3Ainterprocess%3A%3Amessage_queue-tp20597994p... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
Ion Gaztañaga
-
Romain C.