36#ifdef GECODE_THREADS_WINDOWS
38namespace Gecode {
namespace Support {
43 static_cast<Thread::Run*
>(
p)->exec();
55 throw OperatingSystemError(
"Thread::run[Windows::CreateThread]");
57 throw OperatingSystemError(
"Thread::run[Windows::CloseHandle]");
int p
Number of positive literals for node type.
void release(void)
Release the mutex.
void acquire(void)
Acquire the mutex and possibly block.
void run(Runnable *r)
Run a runnable object.
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