Full specialization of RecursiveMutexImpl for pthreads.

Synopsis

Declared in <bslmt_recursivemuteximpl_pthread.h>

Description

This class provides a full specialization of RecursiveMutexImpl for pthreads. If the pthreads implementation supports the "recursive" attribute, then the native implementation is used, otherwise, a portable, efficient implementation is provided.

Member Functions

Name

Description

RecursiveMutexImpl [constructor]

Create a recursive mutex initialized to an unlocked state.

~RecursiveMutexImpl [destructor]

Destroy this recursive mutex object.

lock

Acquire a lock on this mutex object.

tryLock

Attempt to acquire a lock on this mutex object.

unlock

Release a lock on this mutex.

Created with MrDocs