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