Boost logo

Boost :

Subject: Re: [boost] [asio] Question regarding and pool of threads
From: Tan, Tom (Shanghai) (TTan_at_[hidden])
Date: 2010-09-28 05:29:38

-----Original Message-----
Date: Tue, 28 Sep 2010 11:18:22 +0800
From: Romain CHANU <romainchanu_at_[hidden]>
To: boost_at_[hidden]
Subject: [boost] [asio] Question regarding and pool
        of threads
>Extracted from Boost Asio reference: "The
>that the handler will only be called in a thread in which the run(),
>run_one (), poll() or poll_one() member functions is currently being
>For my understanding, since there is a pool of threads, a handler can
>run concurrently in different threads, even though we are using
>Is that correct? My concern here is about the need or not to lock the
>data accessed by the handler.
My understanding is that, it's another way to say that those calls won't
create an additional thread while calling the completion handler having
been registered by Therefore, if
itself is running in n threads, it's guaranteed all the registered
completion handler will be invoked in at most n threads at random order,
since there are only n threads in total .


Boost list run by bdawes at, gregod at, cpdaniel at, john at