- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
TBB version:tbb30_20110427oss
In other words - if there are many threads , that are waiting for:
Worker thread:
MyRequest req;
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 ?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you don't trust what the Reference has to say, perhaps this quote from the header file helps:
"Multiple threads may each push and pop concurrently."
"Multiple threads may each push and pop concurrently."

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page