#include <board.h>
Public Member Functions | |
| void | init () |
| Bpool * | bpool () |
| ThirdRep * | thirdRep () |
| Grand * | grand () |
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] |
| ThirdRep * | thirdRep_ [MAX_THREADS] |
| Grand * | grand_ [MAX_THREADS] |
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.
| int Glob::add_thread | ( | ) | [private] |
Adds new thread.
Creates global objects for given thread and returns it's index.
1.5.7.1