08-20-2013, 01:20 AM
It is expected to time out, because no-one is signalling the semaphore, but it is expected to time out after the specified timeout value, which in this case is 1.5 sec (1 sec + 500M nsec). For some reason it "timeouts" immediately.