Demo2 for events
A demo for sending some events between three tasks
There are three tasks:
- task1: receiving task
- task2: sending task
- task3: receiving task
and there is the following scenario:
- task1 registers for eventtyp 11 and tries to receive an event with a short timeout. this fails (of course).
- task3 registers for eventtyp 11 and waits for an event.
- task2 sends an event.
- task3 receives the event successful.
- task1 tries after some time again to receive an event with success.
Source in demo2/main.c