Handle identifying a shared callback used by parallel jobs.
More...
#include <jobmanager.h>
|
|
| 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.
|
| |
|
|
uint32_t | m_id = IdMask |
| |
|
uint32_t | m_gen = 0 |
| |
|
|
static constexpr uint32_t | IdMask = uint32_t(-1) |
| |
Handle identifying a shared callback used by parallel jobs.
◆ ParallelCallbackHandle()
| gaia::mt::ParallelCallbackHandle::ParallelCallbackHandle |
( |
uint32_t |
id, |
|
|
uint32_t |
gen |
|
) |
| |
|
inline |
Creates a callback handle from the given identifier and generation.
- Parameters
-
| id | Slot identifier. |
| gen | Slot generation. |
The documentation for this struct was generated from the following file:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/mt/jobmanager.h