Ignore:
File:
1 edited

Legend:

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

    rde6319f r14a61b5  
    8484// Wrapper for co
    8585void CoroutineCtxSwitch(coroutine_desc* src, coroutine_desc* dst) {
     86      // Safety note : This could cause some false positives due to preemption
    8687      verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate );
    8788      disable_interrupts();
     
    9192
    9293      // set new coroutine that task is executing
    93       TL_SET( this_coroutine, dst );
     94      kernelTLS.this_coroutine = dst;
    9495
    9596      // context switch to specified coroutine
     
    102103
    103104      enable_interrupts( __cfaabi_dbg_ctx );
     105      // Safety note : This could cause some false positives due to preemption
    104106      verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate );
    105107} //ctxSwitchDirect
Note: See TracChangeset for help on using the changeset viewer.