Changeset ae7be7a for libcfa/src/concurrency/coroutine.hfa
- Timestamp:
- Mar 27, 2020, 12:05:49 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f0ce5f4
- Parents:
- 68887f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
r68887f9 rae7be7a 70 70 static inline void $ctx_switch( $coroutine * src, $coroutine * dst ) __attribute__((nonnull (1, 2))) { 71 71 // set state of current coroutine to inactive 72 src->state = src->state == Halted ? Halted : Inactive;72 src->state = src->state == Halted ? Halted : Blocked; 73 73 74 74 // set new coroutine that task is executing
Note: See TracChangeset
for help on using the changeset viewer.