cesium-native 0.43.0
Loading...
Searching...
No Matches
TaskScheduler.h
1#pragma once
2
3#include "../ITaskProcessor.h"
4#include "ImmediateScheduler.h"
5
6#include <memory>
7
8namespace CesiumAsync {
9namespace CesiumImpl {
10
11// Begin omitting doxygen warnings for Impl namespace
13class TaskScheduler {
14public:
15 TaskScheduler(const std::shared_ptr<ITaskProcessor>& pTaskProcessor);
16 void schedule(async::task_run_handle t);
17
18 ImmediateScheduler<TaskScheduler> immediate{this};
19
20private:
21 std::shared_ptr<ITaskProcessor> _pTaskProcessor;
22};
24// End omitting doxygen warnings for Impl namespace
25
26} // namespace CesiumImpl
27} // namespace CesiumAsync
Classes that support asynchronous operations.