Hi,
I try to call OS functions from Win32 Simulator. Task in blocking call, like getchar() considered by RTOS as in "running"state.
Is it possible to tell to schduler that a task in “Blocking” state?
Rasty, the Windows demo indeed has a limitation: you are not allowed to do any Windows API call.
The problem is that when you call an API, the tasks ( = thread ) gets into a sleeping state. The FreeRTOS scheduler then allow the next task to become active.
When the API is finished, there is a risk of having 2 FreeRTOS tasks to become active at the same time.
I am wondering what happens if you temporarily stop the scheduler: