Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Foundation::Core::JobNode Struct Reference

Public Member Functions

 JobNode (Allocator *alloc)
 
void Initialize (StringView jobName, JobPriority jobPriority, UniquePtr< JobCallable > jobCallable, uint32_t dependencyCount)
 
void Reset ()
 

Public Attributes

Allocatorallocator
 
String name
 
JobPriority priority {JobPriority::Normal}
 
UniquePtr< JobCallablecallable
 
Atomic< JobStatusstatus {JobStatus::Cancelled}
 
Atomic< bool > cancellation {false}
 
Atomic< uint32_t > references {0}
 
Atomic< uint32_t > generation {0}
 
Atomic< bool > active {false}
 
Mutex completionMutex
 
uint32_t dependencies {}
 
bool prerequisiteFailed {}
 
Vector< JobHandlesuccessors
 
Vector< WeakPtr< JobBarrierState > > barriers
 

Constructor & Destructor Documentation

◆ JobNode()

Foundation::Core::JobNode::JobNode ( Allocator alloc)
inlineexplicit

Member Function Documentation

◆ Initialize()

void Foundation::Core::JobNode::Initialize ( StringView  jobName,
JobPriority  jobPriority,
UniquePtr< JobCallable jobCallable,
uint32_t  dependencyCount 
)
inline

◆ Reset()

void Foundation::Core::JobNode::Reset ( )
inline

Member Data Documentation

◆ active

Atomic<bool> Foundation::Core::JobNode::active {false}

◆ allocator

Allocator* Foundation::Core::JobNode::allocator

◆ barriers

Vector<WeakPtr<JobBarrierState> > Foundation::Core::JobNode::barriers

◆ callable

UniquePtr<JobCallable> Foundation::Core::JobNode::callable

◆ cancellation

Atomic<bool> Foundation::Core::JobNode::cancellation {false}

◆ completionMutex

Mutex Foundation::Core::JobNode::completionMutex

◆ dependencies

uint32_t Foundation::Core::JobNode::dependencies {}

◆ generation

Atomic<uint32_t> Foundation::Core::JobNode::generation {0}

◆ name

String Foundation::Core::JobNode::name

◆ prerequisiteFailed

bool Foundation::Core::JobNode::prerequisiteFailed {}

◆ priority

JobPriority Foundation::Core::JobNode::priority {JobPriority::Normal}

◆ references

Atomic<uint32_t> Foundation::Core::JobNode::references {0}

◆ status

Atomic<JobStatus> Foundation::Core::JobNode::status {JobStatus::Cancelled}

◆ successors

Vector<JobHandle> Foundation::Core::JobNode::successors

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