Ignore:
File:
1 edited

Legend:

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

    r5456537 rfd54fef  
    2222//-----------------------------------------------------------------------------
    2323// Exception thrown from resume when a coroutine stack is cancelled.
    24 EHM_FORALL_EXCEPTION(CoroutineCancelled, (coroutine_t &), (coroutine_t)) (
     24FORALL_DATA_EXCEPTION(CoroutineCancelled, (coroutine_t &), (coroutine_t)) (
    2525        coroutine_t * the_coroutine;
    2626        exception_t * the_exception;
     
    6060//-----------------------------------------------------------------------------
    6161// Public coroutine API
    62 forall(T & | is_coroutine(T) | { EHM_DEFAULT_VTABLE(CoroutineCancelled, (T)); })
     62forall(T & | is_coroutine(T))
    6363void prime(T & cor);
    6464
     
    130130
    131131forall(T & | is_coroutine(T))
    132 void __cfaehm_cancelled_coroutine(
    133         T & cor, $coroutine * desc, EHM_DEFAULT_VTABLE(CoroutineCancelled, (T)) );
     132void __cfaehm_cancelled_coroutine( T & cor, $coroutine * desc );
    134133
    135134// Resume implementation inlined for performance
    136 forall(T & | is_coroutine(T) | { EHM_DEFAULT_VTABLE(CoroutineCancelled, (T)); })
     135forall(T & | is_coroutine(T))
    137136static inline T & resume(T & cor) {
    138137        // optimization : read TLS once and reuse it
     
    164163        $ctx_switch( src, dst );
    165164        if ( unlikely(dst->cancellation) ) {
    166                 __cfaehm_cancelled_coroutine( cor, dst, _default_vtable );
     165                __cfaehm_cancelled_coroutine( cor, dst );
    167166        }
    168167
Note: See TracChangeset for help on using the changeset viewer.