Changes in src/libcfa/concurrency/invoke.c [c84e80a:8118303]
- File:
-
- 1 edited
-
src/libcfa/concurrency/invoke.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.c
rc84e80a r8118303 14 14 15 15 extern void __suspend_no_inline__F___1(void); 16 extern void __scheduler_remove__F_P9sthread_h__1(struct thread_h*);17 16 18 17 void CtxInvokeCoroutine( … … 21 20 void *this 22 21 ) { 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); 24 23 25 24 struct coroutine* cor = get_coroutine( this ); … … 43 42 void *this 44 43 ) { 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); 46 45 47 46 __suspend_no_inline__F___1(); 48 47 49 struct thread_h* thrd = get_thread( this ); 50 struct coroutine* cor = &thrd->c; 48 struct coroutine* cor = &get_thread( this )->c; 51 49 cor->state = Active; 52 50 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); 54 52 main( this ); 55 56 __scheduler_remove__F_P9sthread_h__1(thrd);57 53 58 54 //Final suspend, should never return … … 68 64 void (*invoke)(void *) 69 65 ) { 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); 71 67 72 68 struct coStack_t* stack = &get_coroutine( this )->stack;
Note:
See TracChangeset
for help on using the changeset viewer.