36#ifdef GECODE_THREADS_WINDOWS
38namespace Gecode {
namespace Support {
43 static_cast<Thread::Run*
>(
p)->exec();
53 w_h = CreateThread(NULL, 0,
bootstrap,
this, 0, NULL);
55 throw OperatingSystemError(
"Thread::run[Windows::CreateThread]");
56 if (CloseHandle(w_h) == 0)
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.
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