diff options
Diffstat (limited to 'src/thread_pool.zig')
-rw-r--r-- | src/thread_pool.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thread_pool.zig b/src/thread_pool.zig index 166705a81..c398151ca 100644 --- a/src/thread_pool.zig +++ b/src/thread_pool.zig @@ -122,6 +122,10 @@ pub fn schedule(self: *ThreadPool, batch: Batch) void { self.run_queue.push(list); } + forceSpawn(self); +} + +pub fn forceSpawn(self: *ThreadPool) void { // Try to notify a thread const is_waking = false; return self.notify(is_waking); |