Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::mt::ParallelCallbackHandle Struct Reference

Handle identifying a shared callback used by parallel jobs. More...

#include <jobmanager.h>

Public Member Functions

 ParallelCallbackHandle ()=default
 Creates an invalid callback handle.
 
 ParallelCallbackHandle (uint32_t id, uint32_t gen)
 Creates a callback handle from the given identifier and generation.
 
GAIA_NODISCARD uint32_t id () const
 Returns the slot identifier.
 
GAIA_NODISCARD uint32_t gen () const
 Returns the slot generation.
 
GAIA_NODISCARD bool operator== (const ParallelCallbackHandle &other) const
 Checks whether two callback handles reference the same record.
 

Public Attributes

uint32_t m_id = IdMask
 
uint32_t m_gen = 0
 

Static Public Attributes

static constexpr uint32_t IdMask = uint32_t(-1)
 

Detailed Description

Handle identifying a shared callback used by parallel jobs.

Constructor & Destructor Documentation

◆ ParallelCallbackHandle()

gaia::mt::ParallelCallbackHandle::ParallelCallbackHandle ( uint32_t  id,
uint32_t  gen 
)
inline

Creates a callback handle from the given identifier and generation.

Parameters
idSlot identifier.
genSlot generation.

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