Changes in libcfa/src/concurrency/invoke.c [a3821fa:e84ab3d]
- File:
-
- 1 edited
-
libcfa/src/concurrency/invoke.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/invoke.c
ra3821fa re84ab3d 29 29 // Called from the kernel when starting a coroutine or task so must switch back to user mode. 30 30 31 extern struct $coroutine* __cfactx_cor_finish(void);32 extern void __cfactx_cor_leave ( struct $coroutine* );31 extern struct coroutine$ * __cfactx_cor_finish(void); 32 extern void __cfactx_cor_leave ( struct coroutine$ * ); 33 33 extern void __cfactx_thrd_leave(); 34 34 … … 41 41 ) { 42 42 // Finish setting up the coroutine by setting its state 43 struct $coroutine* cor = __cfactx_cor_finish();43 struct coroutine$ * cor = __cfactx_cor_finish(); 44 44 45 45 // Call the main of the coroutine … … 70 70 } 71 71 72 void __cfactx_coroutine_unwind(struct _Unwind_Exception * storage, struct $coroutine* cor) __attribute__ ((__noreturn__));73 void __cfactx_coroutine_unwind(struct _Unwind_Exception * storage, struct $coroutine* cor) {72 void __cfactx_coroutine_unwind(struct _Unwind_Exception * storage, struct coroutine$ * cor) __attribute__ ((__noreturn__)); 73 void __cfactx_coroutine_unwind(struct _Unwind_Exception * storage, struct coroutine$ * cor) { 74 74 _Unwind_Reason_Code ret = _Unwind_ForcedUnwind( storage, __cfactx_coroutine_unwindstop, cor ); 75 75 printf("UNWIND ERROR %d after force unwind\n", ret); … … 100 100 void __cfactx_start( 101 101 void (*main)(void *), 102 struct $coroutine* cor,102 struct coroutine$ * cor, 103 103 void *this, 104 104 void (*invoke)(void *)
Note:
See TracChangeset
for help on using the changeset viewer.