Felix Kollmann 8addf53fb5
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>
2024-02-13 11:51:42 -06:00
..
2024-02-12 21:49:09 -07:00
2024-02-01 15:22:36 +02:00
2024-02-12 21:49:09 -07:00
2024-01-13 19:37:33 -07:00
2024-02-01 15:22:36 +02:00
2023-11-22 13:24:27 -05:00
2023-11-22 19:08:55 -07:00
2024-01-29 14:30:23 -08:00
2023-10-23 22:42:18 -04:00
2023-11-09 17:41:14 +01:00
2024-02-12 05:25:07 +01:00
2024-02-01 15:22:36 +02:00
2024-02-05 11:55:14 +03:30
2023-10-25 04:28:30 -04:00
2024-02-09 14:02:57 -08:00
2024-01-24 12:48:12 +01:00
2024-01-14 20:45:39 -05:00
2024-02-01 15:22:36 +02:00
2023-11-03 23:18:21 -04:00
2024-02-01 15:22:36 +02:00
2024-02-07 12:41:40 +02:00
2024-02-08 15:39:28 +01:00
2024-02-05 11:55:14 +03:30
2023-10-21 21:24:55 +00:00