Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/coroutine.hfa

    r0957f62 r6b33e89  
    1010// Created On       : Mon Nov 28 12:27:26 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Mar  1 17:44:11 2026
    13 // Update Count     : 43
     12// Last Modified On : Fri Apr 25 06:52:04 2025
     13// Update Count     : 15
    1414//
    1515
     
    9898}
    9999
    100 void stack_verify( coroutine$ * cor );
    101 void stack_verify();
    102 
    103100// Private wrappers for context switch and stack creation
     101// Wrapper for co
    104102static inline void $ctx_switch( coroutine$ * src, coroutine$ * dst ) __attribute__((nonnull (1, 2))) {
    105103        // set state of current coroutine to inactive
     
    112110        /* paranoid */ verify( !athrd->corctx_flag );
    113111        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__
    118112
    119113        // set new coroutine that task is executing
     
    231225
    232226// non local ehm and coroutine utility routines
    233 void * stack_pointer( coroutine$ * cor );
    234 void * stack_pointer();
    235227void enable_ehm();
    236228void disable_ehm();
     
    242234
    243235forall(T & | is_coroutine(T)) {
    244         void * stack_pointer( T & cor );
    245         void stack_verify( T & cor );
    246236    void enable_ehm( T & cor );         // enable checking non-local exceptions for cor via checked_poll
    247237    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.