06-19-2011 11:13 AM
I am using the tbb concurrent bounded queue , class, for a single producer - mutlple consumer version. Curious if the semantics of tbb concurrent bounded queue allow for multiple consumers ?
In other words - if there are many threads , that are waiting for:
q->pop(req); //blocking call to receive the request by a worker thread.
Would multiple consumer consuming off the same queue, result in nasty race condition or the semantics are ok with the same ?