Class PlatformDispatcher

Nested Relationships

Nested Types

Class Documentation

class PlatformDispatcher

Declaration: final

Transfers owned requests to the runtime’s platform/graphics thread.

Submit values or move-owned CPU data; a callback must not access live simulation objects. Check future readiness during update instead of blocking that update on the platform. Shutdown destroys pending captures on the owner before resource cleanup; futures report broken_promise. Submission handles remain safe after dispatcher destruction.

Public Functions

PlatformDispatcher() = default
~PlatformDispatcher()
PlatformDispatcher(const PlatformDispatcher&) = delete
PlatformDispatcher &operator=(const PlatformDispatcher&) = delete
inline Submission submission() const

Declaration: [[nodiscard]]

template<typename Work>
inline std::future<std::invoke_result_t<std::decay_t<Work>&, Context&>> submit(Work &&work)

Declaration: [[nodiscard]]

bool has_pending() const

Declaration: [[nodiscard]]

CE::Diagnostics::DispatchStats diagnostics() const

Declaration: [[nodiscard]]