Add opt. RAII-isms for destruction, fix thread bug
Thread Bug: Incorrectly using && operator for while (DqnJobQueue_TryExecuteNextJob(queue) && !DqnJobQueue_AllJobsComplete(queue)) causing it to prematurely exit if the main thread has completed its work before other threads have completed the remainder. Should be using an || operator, so instead creating a helper function which encapsulates this functionality.
This commit is contained in:
1 parent
886425eaa3
commit
19c427d756
4 files changed
+189
-94