![]() |
Gaia-ECS v0.9.3
A simple and powerful entity component system
|
Internal storage record for a shared parallel callback. More...
#include <jobmanager.h>
Inheritance diagram for gaia::mt::ParallelCallbackRecord:Public Member Functions | |
| ParallelCallbackRecord ()=default | |
| Creates an empty callback record. | |
| ~ParallelCallbackRecord ()=default | |
| Destroys the callback record. | |
| ParallelCallbackRecord (const ParallelCallbackRecord &)=delete | |
| ParallelCallbackRecord & | operator= (const ParallelCallbackRecord &)=delete |
| ParallelCallbackRecord (ParallelCallbackRecord &&other) noexcept | |
| ParallelCallbackRecord & | operator= (ParallelCallbackRecord &&other) noexcept |
Public Member Functions inherited from gaia::cnt::ilist_item | |
| ilist_item (uint32_t index, uint32_t generation) | |
| ilist_item (const ilist_item &other) | |
| ilist_item & | operator= (const ilist_item &other) |
| ilist_item (ilist_item &&other) | |
| ilist_item & | operator= (ilist_item &&other) |
Static Public Member Functions | |
| static GAIA_NODISCARD ParallelCallbackRecord | create (uint32_t index, uint32_t generation, void *pCtx) |
| Creates a new callback record for the intrusive storage. | |
| static GAIA_NODISCARD ParallelCallbackHandle | handle (const ParallelCallbackRecord &record) |
| Returns the public handle associated with record. | |
Public Attributes | |
| JobArgsFunc | callback |
| std::atomic_uint32_t | refs = 0 |
Public Attributes inherited from gaia::cnt::ilist_item | |
| uint32_t | idx |
| Allocated items: Index in the list. Deleted items: Index of the next deleted item in the list. | |
| ItemData | data |
| Item data. | |
Internal storage record for a shared parallel callback.
|
inlinestatic |
Creates a new callback record for the intrusive storage.
| index | Stable slot index in the callback pool. |
| generation | Generation assigned to the slot. |
| pCtx | Allocation context carrying the callback and reference count. |
|
inlinestatic |
Returns the public handle associated with record.
| record | Callback record to inspect. |