Fermat
Public Methods | List of all members
cugar::Mutex Class Reference

Detailed description

A mutex class, to be used to provide mutual exclusion of multi-thread execution

struct MyThreadSafeClass
{
// multi-thread safe section
void foo()
{
bar();
// enter a critical section
m_mutex.lock();
... // do something
m_mutex.unlock();
}
private:
Mutex m_mutex;
};

#include <threads.h>

Public Methods

void lock ()
 
void unlock ()
 

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