IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
SMP::Mutex Class Reference

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
 

Detailed Description

Class used to protect data shared with different threads.

Author
Gian-Carlo Pascutto

Constructor & Destructor Documentation

◆ Mutex()

SMP::Mutex::Mutex ( )

Standard constructor (Set the Mutex as unlocked)

◆ ~Mutex()

SMP::Mutex::~Mutex ( )
default

Standard destructor.

Friends And Related Function Documentation

◆ Lock

friend class Lock
friend

Member Data Documentation

◆ m_lock

std::atomic<bool> SMP::Mutex::m_lock
private

Boolean representing the locking state of the Mutex


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