sfMutex Class Reference

sfMutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads. More...

#include <Mutex.hpp>

Inheritance diagram for sfMutex:

sfNonCopyable List of all members.

Public Member Functions

 sfMutex ()
 Default constructor.
 ~sfMutex ()
 Destructor.
void Lock ()
 Lock the mutex.
void Unlock ()
 Unlock the mutex.

Detailed Description

sfMutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads.

The Win32 version uses critical sections, as it is faster than mutexes.
See sfLock for an efficient way of using it.

Definition at line 42 of file Win32/Mutex.hpp.


Constructor & Destructor Documentation

sfMutex::sfMutex (  ) 

Default constructor.

Definition at line 34 of file Mutex.cpp.

sfMutex::~sfMutex (  ) 

Destructor.

Definition at line 43 of file Mutex.cpp.


Member Function Documentation

void sfMutex::Lock (  ) 

Lock the mutex.

Definition at line 52 of file Mutex.cpp.

void sfMutex::Unlock (  ) 

Unlock the mutex.

Definition at line 61 of file Mutex.cpp.


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