Horizon Official Technical Documentation
|
|
#include <System.hpp>
Public Member Functions | |
WorkQueueManager (WorkControlAgent &control_agent) | |
void | push (std::shared_ptr< WorkContext > seg) |
std::shared_ptr< WorkContext > | pop () |
bool | process () |
bool | is_paused () |
Public Attributes | |
WorkControlAgent & | _control_agent |
boost::lockfree::spsc_queue< std::shared_ptr< WorkContext >, boost::lockfree::capacity< 100 > > | _queue |
std::atomic< bool > | _paused {false} |
|
inline |
|
inline |
References _paused.
|
inline |
References _queue.
Referenced by Horizon::System::RuntimeContext::pop(), and process().
|
inline |
References _control_agent, _paused, _queue, Horizon::System::RuntimeContext::WorkControlAgent::completed(), Horizon::System::RuntimeContext::WorkControlAgent::failed(), Horizon::System::RuntimeContext::WorkControlAgent::get_status(), pop(), Horizon::System::RUNTIME_WORK_QUEUE_CANCELLED, Horizon::System::RUNTIME_WORK_QUEUE_PAUSED, and Horizon::System::RUNTIME_WORK_QUEUE_STOPPED.
Referenced by Horizon::System::RuntimeContext::run().
|
inline |
References _queue.
Referenced by Horizon::System::RuntimeContext::push().
WorkControlAgent& Horizon::System::RuntimeContext::WorkQueueManager::_control_agent |
Referenced by process().
std::atomic<bool> Horizon::System::RuntimeContext::WorkQueueManager::_paused {false} |
Referenced by is_paused(), and process().
boost::lockfree::spsc_queue<std::shared_ptr<WorkContext>, boost::lockfree::capacity<100> > Horizon::System::RuntimeContext::WorkQueueManager::_queue |