Glob Class Reference

Holding global (per thread) variables. More...

#include <board.h>

List of all members.

Public Member Functions

void init ()
Bpool * bpool ()
ThirdRepthirdRep ()
Grandgrand ()

Private Member Functions

int tti ()
 Thread to index.
int add_thread ()
 Adds new thread.

Private Attributes

int threadIds_ [MAX_THREADS]
int threadsNum_
pthread_mutex_t lock
Bpool * bpool_ [MAX_THREADS]
ThirdRepthirdRep_ [MAX_THREADS]
Grandgrand_ [MAX_THREADS]


Detailed Description

Holding global (per thread) variables.

Glob is responsible for keeping global variables board pool, random generator and third repetition object separate for each thread. Access to these variables from threads is transparent.


Member Function Documentation

int Glob::add_thread (  )  [private]

Adds new thread.

Creates global objects for given thread and returns it's index.


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

Generated on Thu Aug 6 23:29:08 2009 for akimot by  doxygen 1.5.7.1