Skip to content

Commit 960d52a

Browse files
committed
use configured stack size for threads in thread_pool
1 parent f09a1a0 commit 960d52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/thread_pool.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ noinline fn notifySlow(self: *ThreadPool, is_waking: bool) void {
472472

473473
// We signaled to spawn a new thread
474474
if (can_wake and sync.spawned < self.max_threads) {
475-
const spawn_config = std.Thread.SpawnConfig{ .stack_size = default_thread_stack_size };
475+
const spawn_config = std.Thread.SpawnConfig{ .stack_size = self.stack_size };
476476
const thread = std.Thread.spawn(spawn_config, Thread.run, .{self}) catch return self.unregister(null);
477477
// if (self.name.len > 0) thread.setName(self.name) catch {};
478478
return thread.detach();

0 commit comments

Comments
 (0)