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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.120.109