Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

rlog::Lock Class Reference

#include <Lock.h>

List of all members.

Public Member Functions

 Lock (Mutex *mutex)
 Lock (Mutex *mutex)

Public Attributes

Mutex_mutex
Mutex_mutex


Detailed Description

Simple helper class or doing locking, so we can be sure the lock is released when our scope ends for whatever reason..

Usage

        func()
        {
            // mutex released when lock goes out of scope
            Lock lock( &mutex );

            ...
        }


The documentation for this class was generated from the following files:
Generated on Wed Dec 8 22:52:02 2004 for rlog by doxygen 1.3.8