Changeset aa00626 for libcfa/src/concurrency
- Timestamp:
- May 16, 2019, 12:14:42 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 10248ae0, 24afc53, 8133121
- Parents:
- f2e482cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
rf2e482cb raa00626 117 117 // Resume implementation inlined for performance 118 118 forall(dtype T | is_coroutine(T)) 119 static inline voidresume(T & cor) {119 static inline T & resume(T & cor) { 120 120 // optimization : read TLS once and reuse it 121 121 // Safety note: this is preemption safe since if … … 145 145 // always done for performance testing 146 146 CoroutineCtxSwitch( src, dst ); 147 148 return cor; 147 149 } 148 150
Note: See TracChangeset
for help on using the changeset viewer.