![]() |
IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
|
Class used to protect data shared with different threads. More...
#include <SMP.h>
Public Member Functions | |
Mutex () | |
Standard constructor (Set the Mutex as unlocked) More... | |
~Mutex ()=default | |
Standard destructor. More... | |
Private Attributes | |
std::atomic< bool > | m_lock |
Friends | |
class | Lock |
Class used to protect data shared with different threads.
SMP::Mutex::Mutex | ( | ) |
Standard constructor (Set the Mutex as unlocked)
|
default |
Standard destructor.
|
friend |
|
private |
Boolean representing the locking state of the Mutex