
24 Jul
2010
24 Jul
'10
7:32 p.m.
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