/home/runner/work/HiCR/HiCR/include/hicr/frontends/tasking/worker.hpp File Reference
HiCR
|
#include <thread>
#include <memory>
#include <utility>
#include <vector>
#include <set>
#include <unistd.h>
#include <hicr/core/definitions.hpp>
#include <hicr/core/exceptions.hpp>
#include <hicr/core/processingUnit.hpp>
#include <hicr/core/computeManager.hpp>
#include <hicr/backends/pthreads/computeManager.hpp>
#include "task.hpp"
Go to the source code of this file.
Classes | |
class | HiCR::tasking::Worker |
Typedefs | |
using | HiCR::tasking::pullFunction_t = std::function< HiCR::tasking::Task *()> |
Variables | |
constexpr size_t | HiCR::tasking::_DEFAULT_SUSPEND_INTERVAL_MS = 1000 |
constexpr size_t | HiCR::tasking::_MILISECONDS_PER_SECOND = 1000 |
Detailed Description
brief Provides a definition for the HiCR Worker class.
- Date
- 7/7/2023
Typedef Documentation
◆ pullFunction_t
using HiCR::tasking::pullFunction_t = typedef std::function<HiCR::tasking::Task *()> |
Defines a standard type for a pull function.
Variable Documentation
◆ _DEFAULT_SUSPEND_INTERVAL_MS
|
constexpr |
Default interval (milliseconds) of idle time to trigger a worker to suspend
◆ _MILISECONDS_PER_SECOND
|
constexpr |
Constant: Number of milliseconds in one second
Generated by