CatapultServer
v0.5.0.1 (Elephant)
|
Go to the source code of this file.
Classes | |
struct | catapult::thread::Task |
A task that can be dispatched to the scheduler. More... | |
Namespaces | |
catapult | |
catapult::thread | |
Typedefs | |
using | catapult::thread::TaskCallback = supplier< thread::future< TaskResult > > |
Task callback that is invoked by the scheduler. More... | |
using | catapult::thread::DelayGenerator = supplier< utils::TimeSpan > |
Supplier that generates delays. More... | |
Enumerations | |
enum | catapult::thread::TaskResult { catapult::thread::TaskResult::Continue, catapult::thread::TaskResult::Break } |
Result of a task. More... | |
Functions | |
DelayGenerator | catapult::thread::CreateUniformDelayGenerator (const utils::TimeSpan &delay) |
Creates a uniform delay generator that always returns delay. More... | |
DelayGenerator | catapult::thread::CreateIncreasingDelayGenerator (const utils::TimeSpan &minDelay, uint32_t numPhaseOneRounds, const utils::TimeSpan &maxDelay, uint32_t numTransitionRounds) |
Task | catapult::thread::CreateNamedTask (const std::string &name, const TaskCallback &callback) |
Creates an unscheduled task with name and callback. More... | |