Project

General

Profile

openutils::Mutex Class Reference

#include <ou_thread.h>

Public Member Functions

 Mutex ()
 Mutex (const char *nm)
void create (const char *nm)
unsigned long * getMutexHandle ()
std::string getName ()
void release ()

Detailed Description

class Mutex Represents a Mutex object to synchronize access to shaed resources.

Definition at line 93 of file ou_thread.h.

Constructor & Destructor Documentation

Mutex::Mutex ( )

@ The Mutex class implementation @/

/** Mutex() default constructor

Definition at line 223 of file ou_thread.cpp.

Mutex::Mutex ( const char *  nm)

Mutex(const char* nm) overloaded constructor creates a Mutex object identified by "nm"

Definition at line 232 of file ou_thread.cpp.

Member Function Documentation

void Mutex::create ( const char *  nm)

create(const char* nm) frees the current mutex handle. creates a Mutex object identified by "nm"

Definition at line 244 of file ou_thread.cpp.

unsigned long * Mutex::getMutexHandle ( )

getMutexHandle() returns the handle of the low-level mutex object

Definition at line 258 of file ou_thread.cpp.

string Mutex::getName ( )

getName() returns the name of the mutex

Definition at line 265 of file ou_thread.cpp.


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