- File:
-
- 1 edited
-
libcfa/src/concurrency/exception.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/exception.cfa
rc960331 r1c01c58 10 10 // Created On : Mon Aug 17 10:41:00 2020 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Oct 28 14:34:00 202013 // Update Count : 112 // Last Modified On : Tue Aug 25 14:41:00 2020 13 // Update Count : 0 14 14 // 15 15 16 #define __cforall_thread__ 16 extern "C" { 17 // use this define to make unwind.h play nice, definitely a hack 18 #define HIDE_EXPORTS 19 #include <unwind.h> 20 #undef HIDE_EXPORTS 21 } 17 22 23 #include "invoke.h" 18 24 #include "exception.hfa" 19 20 25 #include "coroutine.hfa" 21 26 22 27 extern struct $thread * mainThread; 23 extern "C" {24 extern void __cfactx_thrd_leave();25 }26 28 27 29 // Common pattern for all the stop functions, wait until the end then act. … … 50 52 51 53 STOP_AT_END_FUNCTION(thread_cancelstop, 52 __cfactx_thrd_leave();53 __cabi_abort( "Resumed cancelled thread");54 // TODO: Instead pass information to the joiner. 55 abort(); 54 56 ) 55 57 … … 83 85 stop_param = (void *)0x22; 84 86 } else { 85 this_thread->self_cor.cancellation = unwind_exception;86 87 87 stop_func = thread_cancelstop; 88 88 stop_param = this_thread;
Note:
See TracChangeset
for help on using the changeset viewer.