Changeset 14a61b5 for src/libcfa/concurrency/coroutine.c
- Timestamp:
- May 8, 2018, 11:55:33 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 5fec3f6
- Parents:
- 10cfad9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
r10cfad9 r14a61b5 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 preemption 86 87 verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate ); 87 88 disable_interrupts(); … … 91 92 92 93 // set new coroutine that task is executing 93 TL_SET( this_coroutine, dst );94 kernelTLS.this_coroutine = dst; 94 95 95 96 // context switch to specified coroutine … … 102 103 103 104 enable_interrupts( __cfaabi_dbg_ctx ); 105 // Safety note : This could cause some false positives due to preemption 104 106 verify( TL_GET( preemption_state ).enabled || TL_GET( this_processor )->do_terminate ); 105 107 } //ctxSwitchDirect
Note: See TracChangeset
for help on using the changeset viewer.