Home |
RTKernel-32 Programming Manual Function RTKWaitUntil |
Function RTKWaitUntilUsing function RTKWaitUntil, a time limit for the occurrence of an event can be specified. RTKBool RTKWaitUntil(RTKSemaphore S, RTKTime Time); ParametersSThe semaphore to wait at. TimeThe maximum point in time in timer ticks up to which is waited 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 RTKWaitUntil, 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, RTKWaitUntil has decremented the semaphore's value if it returns TRUE.
|