Ivo Andric | 2 Sep 21:24
Picon
Favicon

[Boost.Asio] strands sharing an object

Hi,

Suppose I have 2 strands, one with callbacks that read from one socket

and another with callbacks writing to another socket.

And, suppose I have some kind of queue structure in between.

The io_service is run with 2 threads.

How do I synchronize access to the queue between these two strads?

Many thanks

Ivo


_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Gmane