40 #ifdef GECODE_THREADS_PTHREADS
42 namespace Gecode {
namespace Support {
58 if (pthread_create(&p_t, NULL,
bootstrap,
this) != 0)
Mutex m
Mutex for synchronization.
void * bootstrap(void *p)
Function to start execution.
void acquire(void)
Acquire the mutex and possibly block.
Runnable * r
Runnable object to execute.
void release(void)
Release the mutex.
int p
Number of positive literals for node type.
Exception: operating system error
Gecode toplevel namespace
Run(Runnable *r)
Create a new thread.