Changeset e9e4e9ee for src/libcfa/concurrency/invoke.c
- Timestamp:
- Jan 19, 2017, 11:04:27 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 2175062
- Parents:
- 5ebb2fbc (diff), 68e6031 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.c
r5ebb2fbc re9e4e9ee 14 14 15 15 extern void __suspend_no_inline__F___1(void); 16 extern void __scheduler_remove__F_P9sthread_h__1(struct thread_h*); 16 17 17 18 void CtxInvokeCoroutine( … … 20 21 void *this 21 22 ) { 22 LIB_DEBUG_PRINTF("Invoke Coroutine : Received %p (main %p, get_c %p)\n", this, main, get_coroutine);23 // LIB_DEBUG_PRINTF("Invoke Coroutine : Received %p (main %p, get_c %p)\n", this, main, get_coroutine); 23 24 24 25 struct coroutine* cor = get_coroutine( this ); … … 42 43 void *this 43 44 ) { 44 LIB_DEBUG_PRINTF("Invoke Thread : Received %p (main %p, get_t %p)\n", this, main, get_thread);45 // LIB_DEBUG_PRINTF("Invoke Thread : Received %p (main %p, get_t %p)\n", this, main, get_thread); 45 46 46 47 __suspend_no_inline__F___1(); 47 48 48 struct coroutine* cor = &get_thread( this )->c; 49 struct thread_h* thrd = get_thread( this ); 50 struct coroutine* cor = &thrd->c; 49 51 cor->state = Active; 50 52 51 LIB_DEBUG_PRINTF("Invoke Thread : invoking main %p (args %p)\n", main, this);53 // LIB_DEBUG_PRINTF("Invoke Thread : invoking main %p (args %p)\n", main, this); 52 54 main( this ); 55 56 __scheduler_remove__F_P9sthread_h__1(thrd); 53 57 54 58 //Final suspend, should never return … … 64 68 void (*invoke)(void *) 65 69 ) { 66 LIB_DEBUG_PRINTF("StartCoroutine : Passing in %p (main %p) to invoke (%p) from start (%p)\n", this, main, invoke, CtxStart);70 // LIB_DEBUG_PRINTF("StartCoroutine : Passing in %p (main %p) to invoke (%p) from start (%p)\n", this, main, invoke, CtxStart); 67 71 68 72 struct coStack_t* stack = &get_coroutine( this )->stack;
Note:
See TracChangeset
for help on using the changeset viewer.