40 namespace Gecode {
namespace Support {
Mutex m
Mutex for synchronization.
An interface for objects that can be run by a thread.
void acquire(void)
Acquire the mutex and possibly block.
Runnable * r
Runnable object to execute.
A mutex for mutual exclausion among several threads.
void release(void)
Release the mutex.
virtual void run(void)=0
The function that is executed when the thread starts.
void exec(void)
Infinite loop for execution.
static Run * idle
Idle runners.
Event e
Event to wait for next runnable object to execute.
static Mutex * m(void)
Mutex for synchronization.
Gecode toplevel namespace
void wait(void)
Wait until the event becomes signalled.