Ignore:
Timestamp:
Oct 1, 2023, 12:05:08 PM (7 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
fd775ae
Parents:
1e7a765
Message:

added enable/disable ehm with no params for coroutines

File:
1 edited

Legend:

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

    r1e7a765 r147a137  
    343343
    344344bool poll() libcfa_public { return poll( active_coroutine() ); }
     345void enable_ehm() libcfa_public { active_coroutine()->ehm_state.ehm_enabled = true; }
     346void disable_ehm() libcfa_public { active_coroutine()->ehm_state.ehm_enabled = false; }
     347bool checked_poll() libcfa_public { return active_coroutine()->ehm_state.ehm_enabled ? poll( active_coroutine() ) : false; }
    345348coroutine$ * resumer() libcfa_public { return active_coroutine()->last; }
    346349coroutine$ * first_resumer() libcfa_public { return active_coroutine()->starter; }
Note: See TracChangeset for help on using the changeset viewer.