One worker of a ParallelForAsyncState: drains the shared cursor and, when it is the last running worker, satisfies the promise and frees the shared state.
More...
template<typename Fn>
struct Foundation::Core::ParallelForAsyncJob< Fn >
One worker of a ParallelForAsyncState: drains the shared cursor and, when it is the last running worker, satisfies the promise and frees the shared state.
- Note
- Each instance is owned by the pool queue (destroyed after a single Execute). Only the shared state is reference-counted via ParallelForAsyncState::remaining.