
4 Sep
2009
4 Sep
'09
8:44 a.m.
2009/9/4 Tim Blechmann <tim@klingt.org>:
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 thread-safe :)
I didn't look at your library, but I think that this decision is dangerous. I think that this debug functionalities should be enabled only if explicitly required by the user, who is assumed to know what is doing. Manuel Fiorelli