Boost logo

Boost :

Subject: Re: [boost] boost.lockfree update
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2010-07-24 15:32:30


On 07/24/2010 07:49 AM, Tim Blechmann wrote:
>
>> 3. For the empty() method, it says "Not thread-safe, use for debugging
>> purposes only". Does this mean calling it might destroy the data
>> structure's invariants? Or is it always safe in that regard? In which
>> scenarios can it be used, specifically?
>>
> calling it may return a wrong result. the data structure is not corrupted.
>
Am I right in assuming that the result it produces is correct when it is
produced, and the only problem is that something could get added to the
queue before the caller gets a chance to examine the result?

Sebastian


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