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