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