Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/thread.c

    r65deb18 r82c948c  
    3434        self_cor{};
    3535        self_cor.name = "Anonymous Coroutine";
     36        curr_cor = &self_cor;
    3637        self_mon.owner = &this;
    3738        self_mon.recursion = 1;
    3839        self_mon_p = &self_mon;
    3940        next = NULL;
     41        __cfaabi_dbg_debug_do(
     42                dbg_next = NULL;
     43                dbg_prev = NULL;
     44                __cfaabi_dbg_thread_register(&this);
     45        )
    4046
    4147        monitors{ &self_mon_p, 1, (fptr_t)0 };
     
    99105        dst->state = Active;
    100106
    101         //update the last resumer
    102         dst->last = src;
    103 
    104107        // set new coroutine that the processor is executing
    105108        // and context switch to it
Note: See TracChangeset for help on using the changeset viewer.