Changeset 0957f62 for libcfa/src/concurrency/coroutine.hfa
- Timestamp:
- Mar 1, 2026, 5:47:54 PM (37 hours ago)
- Branches:
- master
- Children:
- 02e7483
- Parents:
- 8086004
- File:
-
- 1 edited
-
libcfa/src/concurrency/coroutine.hfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
r8086004 r0957f62 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 25 06:52:04 202513 // Update Count : 1512 // Last Modified On : Sun Mar 1 17:44:11 2026 13 // Update Count : 43 14 14 // 15 15 … … 98 98 } 99 99 100 void stack_verify( coroutine$ * cor ); 101 void stack_verify(); 102 100 103 // Private wrappers for context switch and stack creation 101 // Wrapper for co102 104 static inline void $ctx_switch( coroutine$ * src, coroutine$ * dst ) __attribute__((nonnull (1, 2))) { 103 105 // set state of current coroutine to inactive … … 110 112 /* paranoid */ verify( !athrd->corctx_flag ); 111 113 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__ 112 118 113 119 // set new coroutine that task is executing … … 225 231 226 232 // non local ehm and coroutine utility routines 233 void * stack_pointer( coroutine$ * cor ); 234 void * stack_pointer(); 227 235 void enable_ehm(); 228 236 void disable_ehm(); … … 234 242 235 243 forall(T & | is_coroutine(T)) { 244 void * stack_pointer( T & cor ); 245 void stack_verify( T & cor ); 236 246 void enable_ehm( T & cor ); // enable checking non-local exceptions for cor via checked_poll 237 247 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.