Boost logo

Boost :

Subject: Re: [boost] [lockfree] how many items are queued?
From: Manuel Fiorelli (manuel.fiorelli_at_[hidden])
Date: 2009-09-04 05:46:52


2009/9/4 Tim Blechmann <tim_at_[hidden]>:
> well, the user of the library has to make sure, that this function is
> not used in places, where a concurrent access to the queue is possible ...
> but, well, even _if_ it would be possible to atomically check, whether a
> stack/queue is empty, the result is not valid any more, at the time,
> when you use the result:

Interesting observation: the result of empty() would be useless in any case.

Manuel Fiorelli


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