Ben Wiederhake
d8c8820ee9
Kernel: Allow Thread::sleep for more than 388 days
...
Because Thread::sleep is an internal interface, it's easy to check that there
are only few callers: Process::sys$sleep, usleep, and nanosleep are happy
with this increased size, because now they support the entire range of their
arguments (assuming small-ish values for ticks_per_second()).
SyncTask doesn't care.
Note that the old behavior wasn't "cap out at 388 days", which would have been
reasonable. Instead, the code resulted in unsigned overflow, meaning that a
very long sleep would "on average" end after about 194 days, sometimes much
quicker.
2020-07-25 20:21:25 +02:00
..
2020-07-06 17:07:44 +02:00
2020-07-15 00:07:20 +02:00
2020-07-15 00:07:20 +02:00
2020-07-17 00:36:50 +02:00
2020-07-19 11:46:37 +02:00
2020-07-06 17:07:44 +02:00
2020-07-09 23:24:55 +02:00
2020-05-14 20:15:18 +02:00
2020-07-07 15:46:58 +02:00
2020-07-06 17:07:44 +02:00
2020-07-06 10:00:24 +02:00
2020-06-21 00:58:55 +02:00
2020-07-17 00:36:50 +02:00
2020-07-06 22:39:06 +02:00
2020-07-01 12:07:01 +02:00
2020-07-05 12:26:27 +02:00
2020-05-16 12:00:04 +02:00
2020-04-18 14:22:42 +02:00
2020-04-18 14:22:42 +02:00
2020-07-01 12:07:01 +02:00
2020-05-27 11:19:38 +02:00
2020-07-01 12:07:01 +02:00
2020-07-17 00:36:50 +02:00
2020-05-16 12:00:04 +02:00
2020-07-05 12:26:27 +02:00
2020-07-03 19:32:34 +02:00
2020-06-02 21:49:47 +02:00
2020-05-16 12:03:25 +02:00
2020-07-06 17:07:44 +02:00
2020-05-14 20:15:18 +02:00
2020-07-06 17:07:44 +02:00
2020-04-30 11:43:25 +02:00
2020-05-14 20:15:18 +02:00
2020-07-01 12:07:01 +02:00
2020-05-16 12:00:04 +02:00
2020-07-25 20:21:25 +02:00
2020-07-15 00:07:20 +02:00
2020-04-11 22:41:05 +02:00
2020-04-12 11:00:38 +02:00
2020-07-01 12:07:01 +02:00
2020-07-04 17:22:23 +02:00
2020-07-06 10:00:24 +02:00
2020-06-27 19:40:33 +02:00
2020-04-08 17:19:46 +02:00
2020-07-06 17:07:44 +02:00
2020-07-06 17:07:44 +02:00
2020-07-05 12:26:27 +02:00
2020-05-16 09:44:00 +02:00
2020-07-06 17:07:44 +02:00
2020-05-16 12:00:04 +02:00
2020-05-23 15:25:43 +02:00
2020-07-18 00:25:02 +02:00
2020-07-25 20:21:25 +02:00
2020-07-25 20:21:25 +02:00
2020-04-13 00:53:22 +02:00
2020-04-13 00:53:22 +02:00
2020-04-27 11:24:21 +02:00
2020-04-27 11:14:41 +02:00
2020-07-15 00:07:20 +02:00
2020-05-16 12:00:04 +02:00
2020-07-06 10:00:24 +02:00
2020-07-06 10:00:24 +02:00