3 #include "Impl/ImmediateScheduler.h"
4 #include "Impl/cesium-async++.h"
24 Scheduler(int32_t numberOfThreads);
25 void schedule(async::task_run_handle t);
29 async::threadpool_scheduler scheduler;
32 static auto createPreRun(ThreadPool::Scheduler* pScheduler) {
34 [pScheduler]() { ThreadPool::_scope = pScheduler->immediate.scope(); };
37 static auto createPostRun() noexcept {
38 return []() noexcept { ThreadPool::_scope.reset(); };
44 std::shared_ptr<Scheduler> _pScheduler;
46 template <
typename T>
friend class Future;
A system for managing asynchronous requests and tasks.
A value that will be available in the future, as produced by AsyncSystem.
A value that will be available in the future, as produced by AsyncSystem. Unlike Future,...
A thread pool created by AsyncSystem::createThreadPool.
Classes that support asynchronous operations.