Home |
RTKernel-32 Programming Manual Function RTKWaitTimed |
Function RTKWaitTimedUsing function RTKWaitTimed, a timeout for the occurrence of an event can be specified. RTKBool RTKWaitTimed(RTKSemaphore S, RTKDuration Timeout); ParametersSThe semaphore to wait at. TimeoutThe maximum time in timer ticks to wait for the occurrence of an event. return valueTRUE if an event was retrieved; otherwise, no event was available and the timeout has expired. If S is an occupied resource or mutex semaphore, the execution priority of the occupying task is re-evaluated according to the rules of priority inheritance. After successful completion of RTKWaitTimed, the active task occupies the resource or mutex semaphore. It cannot be suspended or terminated until it has released all its resources. Except for event semaphores, RTKWaitTimed has decremented the semaphore's value if it returns TRUE.
|