Unable to build concurrent_queue.cpp for busy waiting.

Unable to build concurrent_queue.cpp for busy waiting.

Before I submit a bug report, has anyone been able to build concurrent_queue.cpp without defining __TBB_NO_BUSY_WAIT_IN_CONCURRENT_QUEUE? I get a syntax error as well as a few type related errors.


(I'm using the commercially aligned source release tbb21_014oss.)

$ make info
OS: linux

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

That macro is one of several internal macros (as shown by the __TBB_ prefix) that we sometimes use to control inclusion of this or that feature or a fix which should take some field testing before final release. Unfortunately, sometimes we forgot to timely remove old version of the code, and it remains in files but actually is not supported. It looks to me __TBB_NO_BUSY_WAIT_IN_CONCURRENT_QUEUE is such a case. I would not recommend to use it; it's likely to be removed in the future.

By the way, why do you think this mode might be useful for you?

Leave a Comment

Please sign in to add a comment. Not a member? Join today