Public Member Functions | Private Attributes

c_mutex_locker Class Reference

Helper class for automatic unlocking of locking object in destructor. More...

#include <mutex.h>

Collaboration diagram for c_mutex_locker:

List of all members.

Public Member Functions

 c_mutex_locker (c_mutex &m)
 c_mutex_locker (c_mutex *m)
 ~c_mutex_locker ()
void lock_file_if_needed (const char *fn)
 Detects if inter-process locking mechanism works on this platform, if not, do a locking on file descriptor as workaround.

Private Attributes

int m_fd
 File descriptor.
c_mutexm_m
 Locking object.

Detailed Description

Helper class for automatic unlocking of locking object in destructor.

Author:
VooDooMan
Version:
1
Date:
2007-07

Definition at line 94 of file mutex.h.


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

Generated on Sat Aug 7 2010 15:33:50 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads