docs/classtf_1_1WorkerView.html
| | Taskflow: A General-purpose Task-parallel Programming System |
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
tf::WorkerView Class Reference
class to create an immutable view of a worker More...
#include <taskflow/core/worker.hpp>
|
|
| size_t | id () const |
| | queries the worker id associated with its parent executor
|
| |
| size_t | queue_size () const |
| | queries the size of the queue (i.e., number of pending tasks to run) associated with the worker
|
| |
| size_t | queue_capacity () const |
| | queries the current capacity of the queue
|
| |
|
| | class | Executor | | |
class to create an immutable view of a worker
An executor keeps a set of internal worker threads to run tasks. A worker view provides users an immutable interface to observe when a worker runs a task, and the view object is only accessible from an observer derived from tf::ObserverInterface.
|
| size_t tf::WorkerView::id | ( | | ) | const |
| inline |
queries the worker id associated with its parent executor
A worker id is a unsigned integer in the range [0, N), where N is the number of workers spawned at the construction time of the executor.
The documentation for this class was generated from the following file:
taskflow/core/worker.hpp
Maintained by Dr. Tsung-Wei Huang — Generated by 1.13.1