Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/invoke.h

    r8c50aed r09d4b22  
    9292        };
    9393
    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 };
    9695
    9796        struct coroutine_desc {
     
    165164
    166165                // current execution status for coroutine
    167                 volatile int state;
    168                 enum __Preemption_Reason preempted;
     166                enum coroutine_state state;
    169167
    170168                //SKULLDUGGERY errno is not save in the thread data structure because returnToKernel appears to be the only function to require saving and restoring it
     
    200198        #ifdef __cforall
    201199        extern "Cforall" {
    202                 static inline thread_desc *& get_next( thread_desc & this ) __attribute__((const)) {
     200                static inline thread_desc *& get_next( thread_desc & this ) {
    203201                        return this.next;
    204202                }
    205203
    206                 static inline [thread_desc *&, thread_desc *& ] __get( thread_desc & this ) /*__attribute__((const))*/ {
     204                static inline [thread_desc *&, thread_desc *& ] __get( thread_desc & this ) {
    207205                        return this.node.[next, prev];
    208206                }
     
    220218                }
    221219
    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 ) {
    223221                        if( (lhs.data != 0) != (rhs.data != 0) ) return false;
    224222                        if( lhs.size != rhs.size ) return false;
Note: See TracChangeset for help on using the changeset viewer.