Closed ikbuibui closed 5 months ago
Emplace task might be called in simultaneously when creating child tasks, so, made getNextWorkerID thread safe by using an atomic counter. Fixes a race condition where multiple tasks may be emplaced to the same worker consecutively.
PR must be rebased
Emplace task might be called in simultaneously when creating child tasks, so, made getNextWorkerID thread safe by using an atomic counter. Fixes a race condition where multiple tasks may be emplaced to the same worker consecutively.