Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

tbb mutex - "For testing purposes only", why?

siggybar
Beginner
248 Views
What is the reason for the comment "For testing purposes only" in the doxygen documentation for tbb mutex?

http://threadingbuildingblocks.org/files/documentation/a00142.html#_details

Does this mean I should avoid using tbb::mutex in production code?

Thank you,
Sigmund
0 Kudos
1 Reply
RafSchietekat
Valued Contributor III
248 Views
That should probably be corrected, because from time to time you do want a kernel-level mutex (cheap long waits) instead of a spin mutex (cheap short waits), although you might as well use the C++11 wrapper instead (presumably that's what it is, with a spin mutex rather conspicuously lacking from the new standard).
0 Kudos
Reply