cesium-native 0.43.0
Loading...
Searching...
No Matches
ITaskProcessor.h
1#pragma once
2
3#include "Library.h"
4
5#include <functional>
6
7namespace CesiumAsync {
15public:
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.