Ignore:
File:
1 edited

Legend:

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

    rc84e80a r8118303  
    1414
    1515extern void __suspend_no_inline__F___1(void);
    16 extern void __scheduler_remove__F_P9sthread_h__1(struct thread_h*);
    1716
    1817void CtxInvokeCoroutine(
     
    2120      void *this
    2221) {
    23       // LIB_DEBUG_PRINTF("Invoke Coroutine : Received %p (main %p, get_c %p)\n", this, main, get_coroutine);
     22      LIB_DEBUG_PRINTF("Invoke Coroutine : Received %p (main %p, get_c %p)\n", this, main, get_coroutine);
    2423
    2524      struct coroutine* cor = get_coroutine( this );
     
    4342      void *this
    4443) {
    45       // LIB_DEBUG_PRINTF("Invoke Thread : Received %p (main %p, get_t %p)\n", this, main, get_thread);
     44      LIB_DEBUG_PRINTF("Invoke Thread : Received %p (main %p, get_t %p)\n", this, main, get_thread);
    4645
    4746      __suspend_no_inline__F___1();
    4847
    49       struct thread_h* thrd = get_thread( this );
    50       struct coroutine* cor = &thrd->c;
     48      struct coroutine* cor = &get_thread( this )->c;
    5149      cor->state = Active;
    5250
    53       // LIB_DEBUG_PRINTF("Invoke Thread : invoking main %p (args %p)\n", main, this);
     51      LIB_DEBUG_PRINTF("Invoke Thread : invoking main %p (args %p)\n", main, this);
    5452      main( this );
    55 
    56       __scheduler_remove__F_P9sthread_h__1(thrd);
    5753
    5854      //Final suspend, should never return
     
    6864      void (*invoke)(void *)
    6965) {
    70       // LIB_DEBUG_PRINTF("StartCoroutine : Passing in %p (main %p) to invoke (%p) from start (%p)\n", this, main, invoke, CtxStart);
     66      LIB_DEBUG_PRINTF("StartCoroutine : Passing in %p (main %p) to invoke (%p) from start (%p)\n", this, main, invoke, CtxStart);
    7167
    7268      struct coStack_t* stack = &get_coroutine( this )->stack;
Note: See TracChangeset for help on using the changeset viewer.