Ignore:
File:
1 edited

Legend:

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

    rafd550c rde6319f  
    8484// Wrapper for co
    8585void CoroutineCtxSwitch(coroutine_desc* src, coroutine_desc* dst) {
    86       // Safety note : This could cause some false positives due to preemption
    87       verify( TL_GET( preemption_state.enabled ) || TL_GET( this_processor )->do_terminate );
     86      verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate );
    8887      disable_interrupts();
    8988
     
    9291
    9392      // set new coroutine that task is executing
    94       kernelTLS.this_coroutine = dst;
     93      TL_SET( this_coroutine, dst );
    9594
    9695      // context switch to specified coroutine
     
    103102
    104103      enable_interrupts( __cfaabi_dbg_ctx );
    105       // Safety note : This could cause some false positives due to preemption
    106       verify( TL_GET( preemption_state.enabled ) || TL_GET( this_processor )->do_terminate );
     104      verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate );
    107105} //ctxSwitchDirect
    108106
Note: See TracChangeset for help on using the changeset viewer.