Subject: Re: [boost] [lockfree] how many items are queued?
From: Tim Blechmann (tim_at_[hidden])
Date: 2009-09-04 03:52:48
>>> lockfree.fifo provides the info if the queue is empty or not.
>> it is mainly done as debugging help, but it is not supposed to be used
>> in concurrent code ...
> Because this function is available I thought it is safe to used it.
well, there is a warning in the docs, noting, that this function is not
> What are the reasons that it is not supposed to be used?
it may give you wrong results, because the check cannot be implemented
in an atomic manner ...
-- tim_at_[hidden] http://tim.klingt.org Relying on the government to protect your privacy is like asking a peeping tom to install your window blinds. John Perry Barlow