Simplify timeout handling
commit83789ea27b9086d9e279dc3811225605763d64a3
authorJiří Zárevúcky <zarevucky.jiri@gmail.com>
Tue, 16 Aug 2022 17:52:15 +0000 (16 19:52 +0200)
committerJiří Zárevúcky <zarevucky.jiri@gmail.com>
Thu, 9 Feb 2023 16:12:24 +0000 (9 17:12 +0100)
treecbe3b110d1496cb22762688b2589dc464d65c9f5
parentba25c4bbca58a62473323b0e9c57e9cb14bcbf5a
Simplify timeout handling

Since timeout_unregister() now waits for the handler to complete,
we can get rid of some of the bookkeeping in waitq and thread code.
We can also turn timeout_t into a local variable instead of
keeping it around in thread_t.
kernel/generic/include/proc/thread.h
kernel/generic/src/proc/thread.c
kernel/generic/src/synch/waitq.c
kernel/generic/src/time/timeout.c