a0YieldThread()

Try to schedule another thread.


Syntax

a0tError a0YieldThread( void );

Description

This function request the scheduler to choose a new thread in the same priority level of the current thread (which his the highest priority thread). If not, the current thread continues.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0Err...Some error occurred.
A0ErrOkSuccessful completion.