Changeset 3381ed7 for libcfa/src/concurrency/invoke.h
- Timestamp:
- Feb 13, 2020, 4:18:07 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 50b8885
- Parents:
- 9f575ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/invoke.h
r9f575ea r3381ed7 93 93 94 94 enum coroutine_state { Halted, Start, Primed, Inactive, Active, Rerun, Reschedule }; 95 enum __Preemption_Reason { __NO_PREEMPTION, __ALARM_PREEMPTION, __POLL_PREEMPTION }; 96 enum __Owner_Reason { __NO_OWNER, __ENTER_FREE, __ENTER_ACCEPT, __ENTER_DTOR_FREE, __ENTER_DTOR_ACCEPT, __ENTER_SIGNAL_BLOCK, __WAITFOR, __LEAVE, __LEAVE_THREAD, __WAIT }; 95 97 96 98 struct coroutine_desc { … … 134 136 struct thread_desc * owner; 135 137 138 enum __Owner_Reason owner_reason; 139 136 140 // queue of threads that are blocked waiting for the monitor 137 141 __queue_t(struct thread_desc) entry_queue; … … 165 169 // current execution status for coroutine 166 170 volatile int state; 167 intpreempted;171 enum __Preemption_Reason preempted; 168 172 169 173 //SKULLDUGGERY errno is not save in the thread data structure because returnToKernel appears to be the only function to require saving and restoring it
Note: See TracChangeset
for help on using the changeset viewer.