Fermat
cugar
Mutex
Public Methods
|
List of all members
cugar::Mutex Class Reference
Basic
»
Threads
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:
C:/p4research/research/jpantaleoni/Fermat-Public/contrib/cugar/basic/
threads.h
C:/p4research/research/jpantaleoni/Fermat-Public/contrib/cugar/basic/threads.cpp
Generated by
1.8.13