This function is declared in the kos/semaphore.h file.
Retcode KosSemaphoreWaitTimeout(KosSemaphore *semaphore, rtl_uint32_t mdelay);
Waits for acquisition of the defined semaphore for a period of mdelay in milliseconds.
The function returns the following:
semaphore points to an invalid semaphore;