- File:
-
- 1 edited
-
libcfa/src/concurrency/coroutine.hfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
r0957f62 r6b33e89 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Mar 1 17:44:11 202613 // Update Count : 4312 // Last Modified On : Fri Apr 25 06:52:04 2025 13 // Update Count : 15 14 14 // 15 15 … … 98 98 } 99 99 100 void stack_verify( coroutine$ * cor );101 void stack_verify();102 103 100 // Private wrappers for context switch and stack creation 101 // Wrapper for co 104 102 static inline void $ctx_switch( coroutine$ * src, coroutine$ * dst ) __attribute__((nonnull (1, 2))) { 105 103 // set state of current coroutine to inactive … … 112 110 /* paranoid */ verify( !athrd->corctx_flag ); 113 111 athrd->corctx_flag = true; 114 115 #if defined( __CFA_DEBUG__ )116 stack_verify( src ); // test on front side of context switch, backside is too late.117 #endif // __CFA_DEBUG__118 112 119 113 // set new coroutine that task is executing … … 231 225 232 226 // non local ehm and coroutine utility routines 233 void * stack_pointer( coroutine$ * cor );234 void * stack_pointer();235 227 void enable_ehm(); 236 228 void disable_ehm(); … … 242 234 243 235 forall(T & | is_coroutine(T)) { 244 void * stack_pointer( T & cor );245 void stack_verify( T & cor );246 236 void enable_ehm( T & cor ); // enable checking non-local exceptions for cor via checked_poll 247 237 void disable_ehm( T & cor ); // disable checking non-local exceptions for cor via checked_poll
Note:
See TracChangeset
for help on using the changeset viewer.