
4 Sep
2009
4 Sep
'09
9:46 a.m.
2009/9/4 Tim Blechmann <tim@klingt.org>:
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