rllib  1
Public Member Functions | Public Attributes
rlMutex Class Reference

#include <rlthread.h>

List of all members.

Public Member Functions

 rlMutex (const pthread_mutexattr_t *attr=NULL)
virtual ~rlMutex ()
int trylock ()
int lock ()
int unlock ()

Public Attributes

pthread_mutex_t mutex

Detailed Description

Mutex functions based on POSIX threads.

Definition at line 118 of file rlthread.h.


Constructor & Destructor Documentation

rlMutex::rlMutex ( const pthread_mutexattr_t attr = NULL)

Definition at line 85 of file rlthread.cpp.

rlMutex::~rlMutex ( ) [virtual]

Definition at line 90 of file rlthread.cpp.


Member Function Documentation

int rlMutex::lock ( )
  Lock the mutex.
  

Definition at line 100 of file rlthread.cpp.

int rlMutex::trylock ( )
  Try to lock the mutex.
  return 0 if already locked
  return !0 if lock sucessfull
  

Definition at line 95 of file rlthread.cpp.

int rlMutex::unlock ( )
  Unlock the mutex.
  

Definition at line 105 of file rlthread.cpp.


Member Data Documentation

Definition at line 141 of file rlthread.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines