![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
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 | |
| ParallelScope & | operator= (ParallelScope &&)=delete |
| ParallelScope & | operator= (const ParallelScope &)=delete |
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.