Community
cancel
Showing results for 
Search instead for 
Did you mean: 
bhindman
Beginner
51 Views

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. FYI: (I'm using the commercially aligned source release tbb21_014oss.) $ make info OS: linux arch=em64t compiler=gcc runtime=cc4.1.2_libc2.3.6_kernel2.6.18 tbb_build_prefix=linux_em64t_gcc_cc4.1.2_libc2.3.6_kernel2.6.18
0 Kudos
1 Reply
Alexey_K_Intel3
Employee
51 Views

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?
Reply