| OpenTTD
    | 
Simple mutex locker to keep a mutex locked until the locker goes out of scope. More...
#include <thread.h>
| Public Member Functions | |
| ThreadMutexLocker (ThreadMutex *mutex) | |
| Lock the mutex and keep it locked for the life time of this object. | |
| ~ThreadMutexLocker () | |
| Unlock the mutex. | |
| Private Member Functions | |
| ThreadMutexLocker (const ThreadMutexLocker &) | |
| ThreadMutexLocker & | operator= (const ThreadMutexLocker &) | 
| Private Attributes | |
| ThreadMutex * | mutex | 
Simple mutex locker to keep a mutex locked until the locker goes out of scope.
| 
 | inline | 
Lock the mutex and keep it locked for the life time of this object.
| mutex | Mutex to be locked. | 
Definition at line 107 of file thread.h.
References ThreadMutex::BeginCritical().
 1.8.1.2
 1.8.1.2