Ignore:
Timestamp:
Mar 27, 2020, 12:05:49 PM (19 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
f0ce5f4
Parents:
68887f9
Message:

Fixed incorrect setting of ready state and added result to previous park information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/coroutine.hfa

    r68887f9 rae7be7a  
    7070static inline void $ctx_switch( $coroutine * src, $coroutine * dst ) __attribute__((nonnull (1, 2))) {
    7171        // set state of current coroutine to inactive
    72         src->state = src->state == Halted ? Halted : Inactive;
     72        src->state = src->state == Halted ? Halted : Blocked;
    7373
    7474        // set new coroutine that task is executing
Note: See TracChangeset for help on using the changeset viewer.