Ignore:
File:
1 edited

Legend:

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

    rbe73f30 rc960331  
    134134void ^?{}($coroutine& this) {
    135135        if(this.state != Halted && this.state != Start && this.state != Primed) {
    136                 $coroutine * src = active_coroutine();
     136                $coroutine * src = TL_GET( this_thread )->curr_cor;
    137137                $coroutine * dst = &this;
    138138
     
    240240
    241241        struct $coroutine * __cfactx_cor_finish(void) {
    242                 struct $coroutine * cor = active_coroutine();
     242                struct $coroutine * cor = kernelTLS.this_thread->curr_cor;
    243243
    244244                if(cor->state == Primed) {
Note: See TracChangeset for help on using the changeset viewer.