Foundation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Foundation::Core::Job Struct Referenceabstract

Job interface for use with ThreadPool. More...

#include <ThreadPool.hpp>

Inheritance diagram for Foundation::Core::Job:
Foundation::Core::JobGraph::ParallelForJob Foundation::Core::JobGraph::WorkerJob Foundation::Core::LambdaJob< Lambda, ReturnType, Args > Foundation::Core::ParallelForAsyncJob< Fn > Foundation::Core::ParallelForJob< Fn > GPUSceneBlobDecodeJob

Public Member Functions

virtual ~Job ()=default
 
virtual void Execute (size_t id) noexcept=0
 

Detailed Description

Job interface for use with ThreadPool.

Custom implementations of ThreadPoolJob can be constructed in-place with ThreadPool::PushImpl For simple, stateless jobs, consider using ThreadPool::Push with a lambda instead.

Constructor & Destructor Documentation

◆ ~Job()

virtual Foundation::Core::Job::~Job ( )
virtualdefault

Member Function Documentation

◆ Execute()

virtual void Foundation::Core::Job::Execute ( size_t  id)
pure virtualnoexcept

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