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

Job interface for use with ThreadPool. More...

#include <ThreadPool.hpp>

Inheritance diagram for Foundation::Async::ThreadPoolJob:
Foundation::Async::ThreadPoolLambdaJob< Lambda, ReturnType >

Public Member Functions

virtual ~ThreadPoolJob ()=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

◆ ~ThreadPoolJob()

virtual Foundation::Async::ThreadPoolJob::~ThreadPoolJob ( )
virtualdefault

Member Function Documentation

◆ Execute()

virtual void Foundation::Async::ThreadPoolJob::Execute ( size_t  id)
pure virtualnoexcept

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