Class ThreadContext::Lock

class Lock

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.

Public Functions

inline Lock(ThreadContext *t)

The constructor obtains the mutual exclusion lock …

inline ~Lock()

And the destructor releases it.