Files
ladybird/Kernel
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-06 17:07:44 +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-05 12:26:27 +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-05-14 20:15:18 +02:00
2020-07-06 17:07:44 +02:00
2020-07-06 17:07:44 +02:00
2020-07-06 17:07:44 +02:00
2020-04-13 00:53:22 +02:00
2020-04-13 00:53:22 +02:00