pthread_mutex_timedlock with time in past

Joel Sherrill joel.sherrill at
Sat Aug 28 14:24:29 UTC 2010


I was reviewing this code and wanted to
make sure that ...

+ lock is busy (e.g. unavailable)
+ absolute time is in the past

We should return ETIMEDOUT not EBUSY.

The OpenGroup page is this but I am missing
the exact phrase which tells us what to do.

Insight appreciated.


More information about the users mailing list