Commit 9b05474d79
Changed files (1)
src/ThreadPool.zig
@@ -49,6 +49,10 @@ pub fn deinit(self: *ThreadPool) void {
}
fn join(self: *ThreadPool, spawned: usize) void {
+ if (builtin.single_threaded) {
+ return;
+ }
+
{
self.mutex.lock();
defer self.mutex.unlock();