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

Class used to handle Mutex. More...

#include <SMP.h>

Public Member Functions

 Lock (Mutex &m)
 Construct a Lock with a Mutex. More...
 
 ~Lock ()
 Standard destructor. More...
 
void lock ()
 Try to lock the Mutex. More...
 
void unlock ()
 Unlock the Mutex. More...
 

Private Attributes

Mutexm_mutex
 

Detailed Description

Class used to handle Mutex.

Author
Gian-Carlo Pascutto

Constructor & Destructor Documentation

◆ Lock()

SMP::Lock::Lock ( Mutex m)
explicit

Construct a Lock with a Mutex.

Parameters
[in]m

◆ ~Lock()

SMP::Lock::~Lock ( )

Standard destructor.

Member Function Documentation

◆ lock()

SMP::Lock::lock ( )

Try to lock the Mutex.

◆ unlock()

SMP::Lock::unlock ( )

Unlock the Mutex.

Member Data Documentation

◆ m_mutex

Mutex* SMP::Lock::m_mutex
private

The associated mutex


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