]> git.seodisparate.com/gitweb - EntityComponentMetaSystem/commit
Add atomic_bool to ThreadPool to ensure validity
authorStephen Seo <seo.disparate@gmail.com>
Thu, 16 Jun 2022 03:37:09 +0000 (12:37 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 16 Jun 2022 03:37:09 +0000 (12:37 +0900)
commita879e0ef8cbe4755adf4b39c14a5ed14e5173a01
treed58eb2a8f1037792323f9314273b94fbe8168ce4
parent62600cbfa6eb6565aaa8f98de6431cdbe7411648
Add atomic_bool to ThreadPool to ensure validity

The new deque<atomic_bool> ensures that values are not dropped from the
deque until the entry's threads have finished execution.
src/EC/ThreadPool.hpp