Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::detail::QueryImpl::ParallelScope Class Referencefinal

Records OnSet notifications and sorted-query invalidations produced by a parallel region instead of applying them from worker threads, then applies them on the coordinator thread once the region joins. Observers therefore always run on the thread that started the query, in work-item order, exactly like the serial path. Sorted-query invalidation flips a shared SortEntities dirty bit that is not safe to touch from a worker thread. The observer channel is active only when GAIA_OBSERVERS_ENABLED; the sorted-query channel always defers. More...

#include <query.h>

Public Member Functions

 ParallelScope (World &world, uint32_t itemCount)
 
 ParallelScope (ParallelScope &&)=delete
 
 ParallelScope (const ParallelScope &)=delete
 
ParallelScopeoperator= (ParallelScope &&)=delete
 
ParallelScopeoperator= (const ParallelScope &)=delete
 

Detailed Description

Records OnSet notifications and sorted-query invalidations produced by a parallel region instead of applying them from worker threads, then applies them on the coordinator thread once the region joins. Observers therefore always run on the thread that started the query, in work-item order, exactly like the serial path. Sorted-query invalidation flips a shared SortEntities dirty bit that is not safe to touch from a worker thread. The observer channel is active only when GAIA_OBSERVERS_ENABLED; the sorted-query channel always defers.


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