Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio] Socket Read/Write Thread-Safety
From: Timothy Liang (timothy003_at_[hidden])
Date: 2011-01-31 01:55:11


> I think you want multiple threads calling io_service::run instead of
> run_one.

I need to test for a program interruption signal, so I can't use
io_service::run.

> To serialize your connection-related completion handlers you'd want to
> wrap them in a Boost.Asio strand.

I'm not concerned about my own completion handlers. The handlers in Asio's
composed operations is the problem. And I have no way to wrap those in
strands.


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