Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio]About aync_write and socket.close()
From: Matheus Araújo Aguiar (matheus.pit_at_[hidden])
Date: 2009-11-16 07:47:58


On Sat, Nov 14, 2009 at 1:38 PM, Igor R <boost.lists_at_[hidden]> wrote:

> > You may call the methods directly from another thread.
>
> Could you elaborate how you reached this conclusion?
>
Sorry if i was too short. But i saw no problem calling the socket async
write method from a different thread. The async write requests a write
operation that's gonna be performed asynchronously and when the operation is
complete, the io_service::run thread executes the appropriated handler. If
you guarantee that only one thread at a time is calling the object's async
method, there are no problems with it, i assume. Did i make a mistake(or
more than one) in that reasoning?

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Matheus Araújo Aguiar
Computer Scientist
matheus.pit_at_[hidden]


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