aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2024-03-05 08:22:40 +0000
committerChris Boesch <chrboesch@noreply.codeberg.org>2024-03-05 08:22:40 +0000
commit9e9cf40453d57486a9f246e0ec1d0b5aeb645613 (patch)
tree0a96910870f113d4ee266e2e27c46c2bb77dd66e /build.zig
parent277304454a8f18b65985d61cc62c01d00b9dc2d0 (diff)
parent6984345d0af6fb88438ad260fb9146bc8c36466b (diff)
Merge pull request 'Added threading exercise' (#54) from 104_threading into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/54
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 =
\\