Changeset aa00626


Ignore:
Timestamp:
May 16, 2019, 12:14:42 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
10248ae0, 24afc53, 8133121
Parents:
f2e482cb
Message:

resume now return a referece to its parameter for chainning

File:
1 edited

Legend:

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

    rf2e482cb raa00626  
    117117// Resume implementation inlined for performance
    118118forall(dtype T | is_coroutine(T))
    119 static inline void resume(T & cor) {
     119static inline T & resume(T & cor) {
    120120        // optimization : read TLS once and reuse it
    121121        // Safety note: this is preemption safe since if
     
    145145        // always done for performance testing
    146146        CoroutineCtxSwitch( src, dst );
     147
     148        return cor;
    147149}
    148150
Note: See TracChangeset for help on using the changeset viewer.