sc_ThreadLockHolder(3)

sc_ThreadLockHolder3

Acquire a lock on creation and release it on destruction.

Usage

#include <thread.h>

Public Member Functions

ThreadLockHolder (const Ref< ThreadLock > &l)
Acquires the lock. void unlock ()
Release the lock before the DTOR is called, if it is still held. void lock ()
Acquire the lock once more. ~ThreadLockHolder ()
Releases the lock if it is still held.

Detailed Description

Acquire a lock on creation and release it on destruction.

This should be used to lock and unlock ThreadLock objects to provide exception safety.

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 11
  6. 12

Author

Generated automatically by Doxygen for MPQC from the source code.

From libsc-doc 2.3.1-22 in Debian 12 (Bookworm). Parsed by carta from the page's man source.