ThreadContext::Lock Class Reference

Locks the mutex on construction and unlocks on deletion. More...

#include <ThreadContext.h>

Public Member Functions

 Lock (ThreadContext *t)
 The constructor obtains the mutual exclusion lock ...
 
 ~Lock ()
 And the destructor releases it.
 

Protected Attributes

ThreadContextcontext
 The context in which the lock is held.
 

Detailed Description

Locks the mutex on construction and unlocks on deletion.

This class implements the "resource acquisition is initialization" paradigm (see http://www.research.att.com/~bs/glossary.html) of exception safe mutex locking and unlocking.


The documentation for this class was generated from the following file:

Generated using doxygen 1.8.17