implemented jsc::event_counter, jsc::spin_mutex, jsc::forward_as<>, jsc::invoke and jsc::atomic_wait() #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "m.zych/jsc-cxx:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The jsc::event_counter allows signalling occurrences of events and detecting when the desired number of events have happened. It can be used as a dependency counter to detect when the last dependent task has finished executing, thus making the subsequent task ready to be scheduled for execution. +------+ +------+ +------+ |task A| |task B| |task A| +------+ +------+ +------+ | | | v v v ----------------- ----------------- ----------------- |event_counter=2| |event_counter=1| |event_counter=0| ----------------- ----------------- ----------------- | | | v v v +------+ +------+ +------+ |task C| |task C| |task C| +------+ +------+ +------+ ------------------------------------------------------------------> time