Changes in src/libcfa/concurrency/invoke.c [b69ea6b:381fdee]
- File:
-
- 1 edited
-
src/libcfa/concurrency/invoke.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.c
rb69ea6b r381fdee 10 10 // Created On : Tue Jan 17 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 9 1 6:37:42201813 // Update Count : 512 // Last Modified On : Fri Feb 9 14:41:56 2018 13 // Update Count : 3 14 14 // 15 15 … … 28 28 extern void __suspend_internal(void); 29 29 extern void __leave_coroutine(void); 30 extern void __finish_creation(void);31 30 extern void __leave_thread_monitor( struct thread_desc * this ); 32 31 extern void disable_interrupts(); … … 46 45 cor->state = Active; 47 46 48 enable_interrupts( __cfaabi_dbg_ctx );49 50 47 main( this ); 51 48 … … 54 51 //Final suspend, should never return 55 52 __leave_coroutine(); 56 __cabi_abort( "Resumed dead coroutine");53 abortf("Resumed dead coroutine"); 57 54 } 58 55 … … 65 62 // First suspend, once the thread arrives here, 66 63 // the function pointer to main can be invalidated without risk 67 __ finish_creation();64 __suspend_internal(); 68 65 69 66 // Fetch the thread handle from the user defined thread structure … … 84 81 //Final suspend, should never return 85 82 __leave_thread_monitor( thrd ); 86 __cabi_abort( "Resumed dead thread");83 abortf("Resumed dead thread"); 87 84 } 88 85
Note:
See TracChangeset
for help on using the changeset viewer.