Internal access to worker-control state.
More...
#include <gecode/search/worker-control.hh>
Internal access to worker-control state.
Definition at line 39 of file worker-control.hh.
◆ attach()
| void Gecode::Search::WorkerControlAccess::attach |
( |
WorkerControl & | control, |
|
|
unsigned int | capacity ) |
|
static |
Attach control to a leaf engine with fixed capacity.
◆ detach()
| void Gecode::Search::WorkerControlAccess::detach |
( |
WorkerControl & | control | ) |
|
|
static |
Detach control from its leaf engine.
◆ prepare_reuse()
| void Gecode::Search::WorkerControlAccess::prepare_reuse |
( |
WorkerControl & | control | ) |
|
|
static |
Prepare control for another engine with the same capacity.
The owner must have destroyed the previous engine and joined its workers. Requests and event storage survive the transition. Preparing an attached control raises WorkerControlInUse; otherwise this operation is idempotent. Attaching the prepared control with a different capacity raises InvalidWorkerRequest. This is an internal engine-owner operation.
◆ generation()
| unsigned long long int Gecode::Search::WorkerControlAccess::generation |
( |
const WorkerControl & | control | ) |
|
|
static |
Return the request generation.
◆ fast_admission() [1/2]
| const std::atomic< bool > * Gecode::Search::WorkerControlAccess::fast_admission |
( |
const WorkerControl & | control | ) |
|
|
static |
Return the unchanged-capacity fast-admission flag.
◆ fast_admission() [2/2]
| void Gecode::Search::WorkerControlAccess::fast_admission |
( |
WorkerControl & | control, |
|
|
unsigned long long int | generation ) |
|
static |
Publish fast admission after reconciling generation at capacity.
◆ same_identity()
Return whether x and y share one control identity.
◆ requested()
| unsigned int Gecode::Search::WorkerControlAccess::requested |
( |
const WorkerControl & | control | ) |
|
|
static |
Return the current request.
◆ snapshot()
| void Gecode::Search::WorkerControlAccess::snapshot |
( |
const WorkerControl & | control, |
|
|
unsigned int & | requested, |
|
|
unsigned long long int & | generation ) |
|
static |
Return a consistent request and generation snapshot.
◆ wait()
| void Gecode::Search::WorkerControlAccess::wait |
( |
WorkerControl & | control, |
|
|
unsigned int | worker ) |
|
static |
Wait for the event belonging to worker worker.
◆ signal()
| void Gecode::Search::WorkerControlAccess::signal |
( |
WorkerControl & | control, |
|
|
unsigned int | worker ) |
|
static |
Signal the event belonging to worker worker.
◆ signal_all()
| void Gecode::Search::WorkerControlAccess::signal_all |
( |
WorkerControl & | control | ) |
|
|
static |
Signal every worker event.
The documentation for this class was generated from the following file: