sem_timedwait() pthreads-win32 errno usage
问题 I am using pthreads-win32 for threads on a Win32 Application. I am calculating the timespec using the first function posted here. The call to sem_timedwait() appears to be waiting for the specified ts time, however every time it completes I get the following message: Error waiting on semaphore: No error I have checked the file of sem_timedwait.c here, and they specify the same errno values and return values. Consequently, I do not know why it is exiting with this errno, and would like to know