I've written a wrapper for confitions (pthread_cond_*) and sometimes
(not all the times) I get a strange returnvalue from
pthread_cond_timedwait().

the numeric returnvalue is 22 (which should be an error, since
everyting but 0 is failure, ETIMEOUT counted), 22 seems to be EINVAL,
which is a legitimate error.

The really strange thing is when i use the function strerror_r() to
translate the errornumber into a string (which i use to throw an
exception), the string simply contains "Success"  !!????

Can't I use strerror_r() on returnvalues from pthread_cond_timedwait()
function and similar?

Is strerror_r() function only to be used for errorvalues stored in the
errno.h's  errno variable?

//John

Reply via email to