Gecode::Search::WorkerControl::State Class Reference
Public Types | |
| enum class | Lifecycle { READY_TO_BIND , ATTACHED , DETACHED } |
Public Member Functions | |
| State (unsigned int workers) | |
| ~State (void) | |
| Public Member Functions inherited from Gecode::Support::RefCount | |
| RefCount (unsigned long int n) | |
| Initialize. | |
| void | inc (void) |
| Increment counter. | |
| bool | dec (void) |
| Decrement counter and return true if it hits zero. | |
| operator bool (void) const | |
| Test whether reference count is non-zero. | |
Public Attributes | |
| std::atomic< unsigned int > | requested |
| std::atomic< unsigned int > | capacity |
| std::atomic< unsigned long long int > | generation |
| std::atomic< bool > | fast_admit |
| Support::Mutex | mutex |
| Lifecycle | lifecycle |
| Support::Event * | events |
Additional Inherited Members | |
| Protected Attributes inherited from Gecode::Support::RefCount | |
| std::atomic_ulong | n |
| The reference count. | |
Detailed Description
Definition at line 38 of file worker-control.cpp.
Member Enumeration Documentation
◆ Lifecycle
|
strong |
| Enumerator | |
|---|---|
| READY_TO_BIND | |
| ATTACHED | |
| DETACHED | |
Definition at line 40 of file worker-control.cpp.
Constructor & Destructor Documentation
◆ State()
|
inline |
Definition at line 54 of file worker-control.cpp.
◆ ~State()
|
inline |
Definition at line 57 of file worker-control.cpp.
Member Data Documentation
◆ requested
| std::atomic<unsigned int> Gecode::Search::WorkerControl::State::requested |
Definition at line 46 of file worker-control.cpp.
◆ capacity
| std::atomic<unsigned int> Gecode::Search::WorkerControl::State::capacity |
Definition at line 47 of file worker-control.cpp.
◆ generation
| std::atomic<unsigned long long int> Gecode::Search::WorkerControl::State::generation |
Definition at line 48 of file worker-control.cpp.
◆ fast_admit
| std::atomic<bool> Gecode::Search::WorkerControl::State::fast_admit |
Definition at line 49 of file worker-control.cpp.
◆ mutex
| Support::Mutex Gecode::Search::WorkerControl::State::mutex |
Definition at line 50 of file worker-control.cpp.
◆ lifecycle
| Lifecycle Gecode::Search::WorkerControl::State::lifecycle |
Definition at line 51 of file worker-control.cpp.
◆ events
| Support::Event* Gecode::Search::WorkerControl::State::events |
Definition at line 52 of file worker-control.cpp.
The documentation for this class was generated from the following file:
- gecode/search/worker-control.cpp
