cesium-native  0.41.0
CesiumAsync::ITaskProcessor Class Referenceabstract

When implemented by a rendering engine, allows tasks to be asynchronously executed in background threads. More...

#include <CesiumAsync/ITaskProcessor.h>

Public Member Functions

virtual ~ITaskProcessor ()=default
 Default destructor.
 
virtual void startTask (std::function< void()> f)=0
 Starts a task that executes the given function in a background thread. More...
 

Detailed Description

When implemented by a rendering engine, allows tasks to be asynchronously executed in background threads.

Not supposed to be used by clients.

Definition at line 14 of file ITaskProcessor.h.

Member Function Documentation

◆ startTask()

virtual void CesiumAsync::ITaskProcessor::startTask ( std::function< void()>  f)
pure virtual

Starts a task that executes the given function in a background thread.

Parameters
fThe function to execute

The documentation for this class was generated from the following file: