diff options
| author | Felix Kollmann <mail@fkollmann.de> | 2024-02-13 18:51:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-13 11:51:42 -0600 |
| commit | 8addf53fb5046a65c6fd0c0d2e7894be60468132 (patch) | |
| tree | 189044c1a1adb79047ff8bdb892193ebd78f2778 /lib/std/Build/Cache.zig | |
| parent | d7563a7753393d7f0d1af445276a64b8a55cb857 (diff) | |
| download | zig-8addf53fb5046a65c6fd0c0d2e7894be60468132.tar.gz zig-8addf53fb5046a65c6fd0c0d2e7894be60468132.zip | |
Add `timedWait` to `std.Thread.Semaphore` (#18805)
* Add `timedWait` to `std.Thread.Semaphore`
Add example to documentation of `std.Thread.Semaphore`
* Add unit test for thread semaphore timed wait
Fix missing try
* Change unit test to be simpler
* Change `timedWait()` to keep a deadline
* Change `timedWait()` to return earlier in some scenarios
* Change `timedWait()` to keep a deadline (based on std.Timer)
(similar to std.Thread.Futex)
---------
Co-authored-by: protty <45520026+kprotty@users.noreply.github.com>
Diffstat (limited to 'lib/std/Build/Cache.zig')
0 files changed, 0 insertions, 0 deletions
