- File:
-
- 1 edited
-
src/libcfa/concurrency/coroutine.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
r14a61b5 rde6319f 84 84 // Wrapper for co 85 85 void CoroutineCtxSwitch(coroutine_desc* src, coroutine_desc* dst) { 86 // Safety note : This could cause some false positives due to preemption87 86 verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate ); 88 87 disable_interrupts(); … … 92 91 93 92 // set new coroutine that task is executing 94 kernelTLS.this_coroutine = dst;93 TL_SET( this_coroutine, dst ); 95 94 96 95 // context switch to specified coroutine … … 103 102 104 103 enable_interrupts( __cfaabi_dbg_ctx ); 105 // Safety note : This could cause some false positives due to preemption106 104 verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate ); 107 105 } //ctxSwitchDirect
Note:
See TracChangeset
for help on using the changeset viewer.