Ignore:
Timestamp:
Aug 7, 2023, 12:35:53 PM (14 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
27f2bef
Parents:
ff7f6d07
Message:

added support for resuming at resumer, added test for support and cleaned up uneeded include in pingpong exception test

File:
1 edited

Legend:

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

    rff7f6d07 rc3e510b  
    218218}
    219219
    220 // non local ehm routines
     220// non local ehm and coroutine utility routines
    221221forall(T & | is_coroutine(T)) {
    222222    void enable_ehm( T & cor );
     
    224224    bool poll( T & cor );
    225225    bool checked_poll( T & cor );
     226    coroutine$ * resumer( T & cor );
    226227}
    227228
     
    230231trait ehm_resume_at { void $throwResume(exceptT &); };
    231232
     233// general resumeAt
    232234forall(exceptT &, T & | ehm_resume_at( exceptT, T ))
    233235void resumeAt( T & receiver, exceptT & ex );
     236
     237// resumeAt for underlying coroutine$ type
     238forall(exceptT & | { void $throwResume(exceptT &); })
     239void resumeAt( coroutine$ * receiver, exceptT & ex );
    234240
    235241// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.