M
Max
Hi,
I'm developing a software using the great boost libraries. I need to
create many queue for allow different object running threads to
exchange messages between them in asyncronous mode. The message_queue
function is the best solution since allow to post a message into
another queue simply using the identification string. Currently, in my
implementation, each object create a message_queue identified with the
name of the object itself. Then create a thread remaining in wait for
new message. This allow objects to exchange messages using only the
name of the destination object. Very easy and very efficient.
"Unfortunately" I read in some post that this message_queue function is
made of interprocess communication and is not correct to use for
interthread communication. However what is the alternative?
Thank you
--
I'm developing a software using the great boost libraries. I need to
create many queue for allow different object running threads to
exchange messages between them in asyncronous mode. The message_queue
function is the best solution since allow to post a message into
another queue simply using the identification string. Currently, in my
implementation, each object create a message_queue identified with the
name of the object itself. Then create a thread remaining in wait for
new message. This allow objects to exchange messages using only the
name of the destination object. Very easy and very efficient.
"Unfortunately" I read in some post that this message_queue function is
made of interprocess communication and is not correct to use for
interthread communication. However what is the alternative?
Thank you
--