recursive_mutex Class

Summary

CAUTION

This feature is deprecated and will be removed in the future.

Class that models Mutex Concept using underlying OS locks and permits recursive acquisition.

Syntax

class recursive_mutex;

Header

#include "tbb/recursive_mutex.h"

Description

A recursive_mutex is similar to a mutex, except that a thread may acquire multiple locks on it. The thread must release all locks on a recursive_mutex before any other thread can acquire a lock on it.

Members

See Mutex Concept.

See Also

For more complete information about compiler optimizations, see our Optimization Notice.