Changeset 0c92c9f for src/libcfa/concurrency/invoke.c
- Timestamp:
- Jan 27, 2017, 4:28:05 PM (7 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:
- 8804701
- Parents:
- 0157ca7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.c
r0157ca7 r0c92c9f 28 28 // Called from the kernel when starting a coroutine or task so must switch back to user mode. 29 29 30 extern void __suspend_ no_inline__F___1(void);31 extern void __ signal_termination__F_P7sthread__1(struct thread*);30 extern void __suspend_internal(void); 31 extern void __thread_signal_termination(struct thread*); 32 32 33 33 void CtxInvokeCoroutine( … … 41 41 42 42 if(cor->state == Primed) { 43 __suspend_ no_inline__F___1();43 __suspend_internal(); 44 44 } 45 45 … … 52 52 53 53 //Final suspend, should never return 54 __suspend_ no_inline__F___1();55 a ssertf(false,"Resumed dead coroutine");54 __suspend_internal(); 55 abortf("Resumed dead coroutine"); 56 56 } 57 57 … … 61 61 void *this 62 62 ) { 63 // LIB_DEBUG_PRINTF("Invoke Thread : Received %p (main %p, get_t %p)\n", this, main, get_thread); 64 65 __suspend_no_inline__F___1(); 63 __suspend_internal(); 66 64 67 65 struct thread* thrd = get_thread( this ); … … 72 70 main( this ); 73 71 74 __ signal_termination__F_P7sthread__1(thrd);72 __thread_signal_termination(thrd); 75 73 76 74 //Final suspend, should never return 77 __suspend_ no_inline__F___1();78 a ssertf(false,"Resumed dead thread");75 __suspend_internal(); 76 abortf("Resumed dead thread"); 79 77 } 80 78
Note: See TracChangeset
for help on using the changeset viewer.