cesium-native  0.41.0
ITaskProcessor.h
1 #pragma once
2 
3 #include "Library.h"
4 
5 #include <functional>
6 
7 namespace CesiumAsync {
15 public:
19  virtual ~ITaskProcessor() = default;
20 
27  virtual void startTask(std::function<void()> f) = 0;
28 };
29 } // namespace CesiumAsync
When implemented by a rendering engine, allows tasks to be asynchronously executed in background thre...
virtual void startTask(std::function< void()> f)=0
Starts a task that executes the given function in a background thread.
virtual ~ITaskProcessor()=default
Default destructor.
Classes that support asynchronous operations.