Boost logo

Boost :

Subject: Re: [boost] synchorize or strand
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2014-07-31 20:18:48

On 1/08/2014 12:06, Edward Diener wrote:
> On 7/31/2014 7:12 PM, Gavin Lambert wrote:
>> On 1/08/2014 00:19, dd wrote:
>>> There is multi-threaded application which will access data
>>> containers at
>>> the same time. Which is the best choice between synchronization and
>>> strands.
>> Strands are a kind of synchronisation. I assume you meant mutexes.
> I would guess the OP meant Boost Fibers when 'strands' was mentioned.

I meant that I was assuming they meant "between mutexes and strands".

"Strands" I assume referred to ASIO strands, since that's the only thing
with that name and the ASIO docs cite them as "an alternative to
explicit locking" -- which of course still means that there are locks
behind the scenes, just that the user code doesn't have to worry about
them. There are many similarities with fibers/coroutines though.

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