Ignore:
Timestamp:
2023-02-09T16:12:24Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0b54c9
Parents:
ba25c4b
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-16 17:52:15)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-09 16:12:24)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/thread.h

    rba25c4b r83789ea2  
    121121        /** Wait queue in which this thread sleeps. */
    122122        waitq_t *sleep_queue;
    123         /** Timeout used for timeoutable sleeping.  */
    124         timeout_t sleep_timeout;
    125         /** Flag signalling sleep timeout in progress. */
    126         volatile bool timeout_pending;
    127123
    128124        /**
Note: See TracChangeset for help on using the changeset viewer.