BluFedora Job System v1.0.0
This is a C++ job system library for use in game engines.
job::internal::PrivateCtx Struct Reference

#include <job_api.hpp>

Inheritance diagram for job::internal::PrivateCtx:
job::Ctx

Public Member Functions

void ReleaseTaskToPool () const
 

Public Attributes

void * src_user_data = nullptr
 
std::atomic_bool * is_ready_for_gc = nullptr
 
- Public Attributes inherited from job::Ctx
Countertask_counter = nullptr
 The counter this task will decrement when done. More...
 
WorkerID current_worker = 0u
 The worker the current task is running on. More...
 
const char * task_name = 0u
 The debug name of the task. More...
 

Detailed Description

Definition at line 226 of file job_api.hpp.

Member Function Documentation

◆ ReleaseTaskToPool()

void job::internal::PrivateCtx::ReleaseTaskToPool ( ) const

Definition at line 212 of file job_system.cpp.

213{
214 is_ready_for_gc->store(true, std::memory_order_release);
215}
std::atomic_bool * is_ready_for_gc
Definition: job_api.hpp:229

Member Data Documentation

◆ src_user_data

void* job::internal::PrivateCtx::src_user_data = nullptr

Definition at line 228 of file job_api.hpp.

◆ is_ready_for_gc

std::atomic_bool* job::internal::PrivateCtx::is_ready_for_gc = nullptr

Definition at line 229 of file job_api.hpp.


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