Missing call to LeaveRegion

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hello,

    when you call OS_EnterRegion() without OS_EnterLeaveRegion() the region counter is set and preemptive task switches are disabled.
    In general cooperative task switches can still happen.
    But in case of OS_Delay() which calls internally OS_DelayUntil() the function waits active for the end of the delay when the region counter is set.

    So the answer is: No, other tasks will not be executed.

    Regards,
    Til
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.