IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
SMP.h File Reference
#include <atomic>

Go to the source code of this file.

Classes

class  SMP::Mutex
 Class used to protect data shared with different threads. More...
 
class  SMP::Lock
 Class used to handle Mutex. More...
 

Namespaces

 SMP
 A Symmetric multiprocessing implementation.
 

Macros

#define LOCK(mutex, lock)   SMP::Lock lock((mutex))
 

Functions

int SMP::get_num_cpus ()
 Returns the number of hardware thread contexts. This value is supposed to be equals to the number of cores of the machine. More...
 

Macro Definition Documentation

◆ LOCK

#define LOCK (   mutex,
  lock 
)    SMP::Lock lock((mutex))