aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-17 01:20:11 -0500
committerGitHub <noreply@github.com>2025-01-17 01:20:11 -0500
commit4bace0f6212a3007247c42b0effcc40c6cfe61a8 (patch)
treea5c1fee87a9266319d8ceffa7717ca5c70b61f7b /lib/std/Thread.zig
parent257054a1467b2612725bd66852d84496024cf66c (diff)
parent8c8dfb35f398407319764f0f8998de34c5247ed6 (diff)
downloadzig-4bace0f6212a3007247c42b0effcc40c6cfe61a8.tar.gz
zig-4bace0f6212a3007247c42b0effcc40c6cfe61a8.zip
Merge pull request #22386 from jacobly0/x86_64-rewrite
x86_64: begin rewriting instruction selection
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index 69dbcf3947..9650bf8373 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -372,9 +372,11 @@ pub const SpawnConfig = struct {
// https://github.com/ziglang/zig/issues/157
/// Size in bytes of the Thread's stack
- stack_size: usize = 16 * 1024 * 1024,
+ stack_size: usize = default_stack_size,
/// The allocator to be used to allocate memory for the to-be-spawned thread
allocator: ?std.mem.Allocator = null,
+
+ pub const default_stack_size = 16 * 1024 * 1024;
};
pub const SpawnError = error{