Signalling an event not stopping a wait?

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

  • Signalling an event not stopping a wait?

    Hello;

    I'm having an issue where a task that is waiting on an event does not continue after the event has been signalled. Basically, what I'm doing is as follows:


    • In main(), I'm creating the event using OS_EVENT_Create(&myEvent)
    • Following this, I create 2 tasks using OS_CREATETASK, later followed by OS_Start()
    • Task 1 will call OS_EVENT_Set(&myEvent) after some work is done
    • The first line of Task 2 is OS_EVENT_Wait(&myEvent)
    • When I step through the debugger, I can see that the OS_EVENT_Set line is executed, but when I look at the embOS debug window in IAR Workbench, I see that Task 2 is still waiting on the event object.

    Any idea what would cause this?



    Thanks!