Joypad Scol plugin
Public Member Functions | List of all members
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 ()
 
 ~Mutex ()
 

Detailed Description

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

Definition at line 94 of file ou_thread.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

Mutex::Mutex ( )

@ The Mutex class implementation @/

/** Mutex() default constructor

Definition at line 223 of file ou_thread.cpp.

◆ Mutex() [2/2]

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.

◆ ~Mutex()

Mutex::~Mutex ( )

Definition at line 275 of file ou_thread.cpp.

Member Function Documentation

◆ create()

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.

◆ getMutexHandle()

unsigned long * Mutex::getMutexHandle ( )

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

Definition at line 258 of file ou_thread.cpp.

◆ getName()

string Mutex::getName ( )

getName() returns the name of the mutex

Definition at line 265 of file ou_thread.cpp.

◆ release()

void Mutex::release ( )

Definition at line 269 of file ou_thread.cpp.


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