Foundation
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Foundation::Core::JobContext Class Reference

#include <JobSystem.hpp>

Public Member Functions

size_t GetWorkerId () const noexcept
 
bool IsCancellationRequested () const noexcept
 

Private Member Functions

 JobContext (size_t workerId, Atomic< bool > const *cancellation)
 

Private Attributes

size_t mWorkerId {}
 
Atomic< bool > const * mCancellation {}
 

Friends

class JobSystem
 

Constructor & Destructor Documentation

◆ JobContext()

Foundation::Core::JobContext::JobContext ( size_t  workerId,
Atomic< bool > const *  cancellation 
)
inlineprivate

Member Function Documentation

◆ GetWorkerId()

size_t Foundation::Core::JobContext::GetWorkerId ( ) const
inlinenoexcept

◆ IsCancellationRequested()

bool Foundation::Core::JobContext::IsCancellationRequested ( ) const
inlinenoexcept

Friends And Related Symbol Documentation

◆ JobSystem

friend class JobSystem
friend

Member Data Documentation

◆ mCancellation

Atomic<bool> const* Foundation::Core::JobContext::mCancellation {}
private

◆ mWorkerId

size_t Foundation::Core::JobContext::mWorkerId {}
private

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