Changes in libcfa/src/concurrency/invoke.h [8c50aed:09d4b22]
- File:
-
- 1 edited
-
libcfa/src/concurrency/invoke.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/invoke.h
r8c50aed r09d4b22 92 92 }; 93 93 94 enum coroutine_state { Halted, Start, Primed, Inactive, Active, Rerun }; 95 enum __Preemption_Reason { __NO_PREEMPTION, __ALARM_PREEMPTION, __POLL_PREEMPTION, __MANUAL_PREEMPTION }; 94 enum coroutine_state { Halted, Start, Inactive, Active, Primed }; 96 95 97 96 struct coroutine_desc { … … 165 164 166 165 // current execution status for coroutine 167 volatile int state; 168 enum __Preemption_Reason preempted; 166 enum coroutine_state state; 169 167 170 168 //SKULLDUGGERY errno is not save in the thread data structure because returnToKernel appears to be the only function to require saving and restoring it … … 200 198 #ifdef __cforall 201 199 extern "Cforall" { 202 static inline thread_desc *& get_next( thread_desc & this ) __attribute__((const)){200 static inline thread_desc *& get_next( thread_desc & this ) { 203 201 return this.next; 204 202 } 205 203 206 static inline [thread_desc *&, thread_desc *& ] __get( thread_desc & this ) /*__attribute__((const))*/{204 static inline [thread_desc *&, thread_desc *& ] __get( thread_desc & this ) { 207 205 return this.node.[next, prev]; 208 206 } … … 220 218 } 221 219 222 static inline bool ?==?( const __monitor_group_t & lhs, const __monitor_group_t & rhs ) __attribute__((const)){220 static inline bool ?==?( const __monitor_group_t & lhs, const __monitor_group_t & rhs ) { 223 221 if( (lhs.data != 0) != (rhs.data != 0) ) return false; 224 222 if( lhs.size != rhs.size ) return false;
Note:
See TracChangeset
for help on using the changeset viewer.