aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <[email protected]>2024-03-05 09:15:57 +0100
committerChris Boesch <[email protected]>2024-03-05 09:15:57 +0100
commit6984345d0af6fb88438ad260fb9146bc8c36466b (patch)
tree0a96910870f113d4ee266e2e27c46c2bb77dd66e /build.zig
parent277304454a8f18b65985d61cc62c01d00b9dc2d0 (diff)
downloadziglings-6984345d0af6fb88438ad260fb9146bc8c36466b.tar.xz
ziglings-6984345d0af6fb88438ad260fb9146bc8c36466b.zip
Added threading exercise
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig14
1 files changed, 14 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 71ea66f..5263023 100644
--- a/build.zig
+++ b/build.zig
@@ -1104,6 +1104,20 @@ const exercises = [_]Exercise{
,
},
.{
+ .main_file = "104_threading.zig",
+ .output =
+ \\Starting work...
+ \\thread 1: started.
+ \\thread 2: started.
+ \\thread 3: started.
+ \\Some weird stuff, after starting the threads.
+ \\thread 2: finished.
+ \\thread 1: finished.
+ \\thread 3: finished.
+ \\Zig is cool!
+ ,
+ },
+ .{
.main_file = "999_the_end.zig",
.output =
\\