worker-control.hh
Go to the documentation of this file.
Internal access to worker-control state.
Definition worker-control.hh:39
static void signal(WorkerControl &control, unsigned int worker)
Signal the event belonging to worker worker.
Definition worker-control.cpp:257
static void signal_all(WorkerControl &control)
Signal every worker event.
Definition worker-control.cpp:275
static bool same_identity(const WorkerControl &x, const WorkerControl &y)
Return whether x and y share one control identity.
Definition worker-control.cpp:212
static unsigned long long int generation(const WorkerControl &control)
Return the request generation.
Definition worker-control.cpp:187
static void prepare_reuse(WorkerControl &control)
Prepare control for another engine with the same capacity.
Definition worker-control.cpp:176
static void snapshot(const WorkerControl &control, unsigned int &requested, unsigned long long int &generation)
Return a consistent request and generation snapshot.
Definition worker-control.cpp:224
static void wait(WorkerControl &control, unsigned int worker)
Wait for the event belonging to worker worker.
Definition worker-control.cpp:239
static void detach(WorkerControl &control)
Detach control from its leaf engine.
Definition worker-control.cpp:163
static const std::atomic< bool > * fast_admission(const WorkerControl &control)
Return the unchanged-capacity fast-admission flag.
Definition worker-control.cpp:193
static void attach(WorkerControl &control, unsigned int capacity)
Attach control to a leaf engine with fixed capacity.
Definition worker-control.cpp:135
static unsigned int requested(const WorkerControl &control)
Return the current request.
Definition worker-control.cpp:218
External control for the requested number of search workers.
Definition search.hh:773
Search engines
Gecode toplevel namespace
