Changeset a3d87b9 in mainline


Ignore:
Timestamp:
2024-01-21T16:20:30Z (3 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
dfa4be62
Parents:
9fbdeca
Message:

We don't need to check thread state to wait for thread exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    r9fbdeca ra3d87b9  
    637637                return EINVAL;
    638638
    639         state_t state = atomic_get_unordered(&thread->state);
    640 
    641         errno_t rc = EOK;
    642 
    643         if (state != Exiting)
    644                 rc = _waitq_sleep_timeout(&thread->join_wq, usec, flags);
     639        errno_t rc = _waitq_sleep_timeout(&thread->join_wq, usec, flags);
    645640
    646641        if (rc == EOK)
Note: See TracChangeset for help on using the changeset viewer.