This class provides a non‐recursive pthread mutex for intra‐process use.

Synopsis

Declared in <bsls_bsllockimpl_pthread.h>

class BslLockImpl_pthread;

Description

This class implements a light‐weight wrapper of an OS‐level mutex to support intra‐process synchronization. The mutex implemented by this class is non‐recursive. Note that BslLockImpl_pthread is not intended for direct use by client code; it is meant for internal use only.

Member Functions

Name

Description

BslLockImpl_pthread [constructor]

Create a lock object initialized to the unlocked state.

~BslLockImpl_pthread [destructor]

Destroy this lock object. The behavior is undefined unless this object is in the unlocked state.

lock

Acquire the lock on this object.

unlock

Release the lock on this object.

Created with MrDocs