3#include "declarations.hpp"
23 friend class Executor;
24 friend class WorkerView;
31 Notifier::Waiter* _waiter;
33 TaskQueue<Node*> _wsq;
109 const Worker& _worker;
114inline WorkerView::WorkerView(
const Worker& w) : _worker{w} {
124 return _worker._wsq.size();
129 return static_cast<size_t>(_worker._wsq.capacity());
class to create an executor for running a taskflow graph
Definition executor.hpp:50
class to create an immutable view of a worker in an executor
Definition worker.hpp:78
size_t id() const
queries the worker id associated with the executor
Definition worker.hpp:118
size_t queue_capacity() const
queries the current capacity of the queue
Definition worker.hpp:128
size_t queue_size() const
queries the size of the queue (i.e., number of pending tasks to run) associated with the worker
Definition worker.hpp:123
taskflow namespace
Definition small_vector.hpp:27