Name
mutex Class — Class that models the Mutex Concept using underlying OS locks.
Synopsis
#include "tbb/mutex.h"class mutex;
Description
A mutex
models the Mutex Concept. It is a wrapper around OS calls that provide mutual exclusion. Here are the advantages of using a mutex
instead of the OS calls:
The
mutex
class is portable across all operating systems supported by Intel Threading Building Blocks.The
mutex
releases the lock if an exception is thrown from the protected region of code.
Members
See Table 7-2.
Get Intel Threading Building Blocks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.