function for calling the scheduler

Hi all,

is there any function in qnx which is similar to the schedule() function in linux.
the function shall call the scheduler and dispatch any ready task with higher priorities.

I look at the documentation. will sleep(0) do something like this?

thanks for any answer.

regards,

Under QNX any thread with a higher priority with already be running - however SchedYield() will yield the CPU to a thread that is ready at the same priority.