Gecode::Search::Par::Frontier::Runner Class Reference
Thread running a worker. More...
#include <gecode/search/par/frontier.hh>
Public Member Functions | |
| Runner (Frontier &e, unsigned int i) | |
| Initialize. | |
| void | run (void) override |
| Run worker. | |
| Support::Terminator * | terminator (void) const override |
| Return terminator. | |
| void | terminated (void) override |
| Signal termination. | |
| Public Member Functions inherited from Gecode::Support::Runnable | |
| Runnable (bool d=true) | |
| Initialize, d defines whether object is deleted when terminated. | |
| void | todelete (bool d) |
| Set whether to delete upon termination. | |
| bool | todelete (void) const |
| Return whether to be deleted upon termination. | |
| virtual | ~Runnable (void) |
| Destructor. | |
| Public Member Functions inherited from Gecode::Support::Terminator | |
| virtual | ~Terminator () |
| Destructor. | |
Public Attributes | |
| Support::Event | wake |
| Events for waking up and for termination. | |
| Support::Event | done |
Additional Inherited Members | |
| Static Public Member Functions inherited from Gecode::Support::Runnable | |
| static void * | operator new (size_t s) |
| Allocate memory from heap. | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. | |
Detailed Description
Thread running a worker.
Definition at line 70 of file frontier.hh.
Constructor & Destructor Documentation
◆ Runner()
| Gecode::Search::Par::Frontier::Runner::Runner | ( | Frontier & | e, |
| unsigned int | i ) |
Initialize.
Definition at line 40 of file frontier.cpp.
Member Function Documentation
◆ run()
|
overridevirtual |
◆ terminator()
|
overridevirtual |
Return terminator.
Reimplemented from Gecode::Support::Runnable.
Definition at line 49 of file frontier.cpp.
◆ terminated()
|
overridevirtual |
Signal termination.
Implements Gecode::Support::Terminator.
Definition at line 54 of file frontier.cpp.
Member Data Documentation
◆ wake
| Support::Event Gecode::Search::Par::Frontier::Runner::wake |
Events for waking up and for termination.
Definition at line 77 of file frontier.hh.
◆ done
| Support::Event Gecode::Search::Par::Frontier::Runner::done |
Definition at line 77 of file frontier.hh.
The documentation for this class was generated from the following files:
- gecode/search/par/frontier.hh
- gecode/search/par/frontier.cpp
