Unintended commit reverse.

This commit is contained in:
Christoffer Lerno
2024-09-28 01:42:06 +02:00
parent 7ff645c423
commit 5df321816b

View File

@@ -109,7 +109,7 @@ macro void! FixedThreadPool.@shutdown(&self, #stop) @private
*/
fn void! FixedThreadPool.push(&self, ThreadPoolFn func, args...)
{
mu.in_lock()!;
self.mu.lock()!;
defer self.mu.unlock()!!;
if (self.qindex == self.queue.len) return ThreadPoolResult.QUEUE_FULL?;
any[] data;