Changeset c0b54c9 in mainline


Ignore:
Timestamp:
2023-02-09T16:29:37Z (16 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c78104
Parents:
83789ea2
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-16 18:04:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-09 16:29:37)
Message:

Thread is guaranteed to exist in waitq_sleep_timed_out

waitq_sleep_timeout() now cleans up its callback and waits for it
before it returns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/waitq.c

    r83789ea2 rc0b54c9  
    9797
    9898        irq_spinlock_lock(&threads_lock, false);
    99         if (!thread_exists(thread))
    100                 goto out;
    10199
    102100grab_locks:
     
    126124                thread_ready(thread);
    127125
    128 out:
    129126        irq_spinlock_unlock(&threads_lock, false);
    130127}
Note: See TracChangeset for help on using the changeset viewer.