Boost logo

Boost :

Subject: Re: [boost] boost lockfree queue.hpp - alternate implementation w/o compare_exchange
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2015-10-22 03:57:30


On 22 Oct 2015 3:26 a.m., <boost_at_[hidden]> wrote:
>>

>
> The yield can be removed without any ill effect except in cases of
over-subscription. Without the yield performance is *very* poor because
the thread is forced to wait for other threads that aren't even running
(lines 355 & 378)... Basically the yield is only a work-around for
something that is undesirable anyway (over-subsciption), but it limits the
'damage' in those scenarios.

It seems to me then it is not really lock free then, right?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk