![]() ![]() |
![]() |
version 1.2, 2006/08/09 21:12:42 | version 1.3, 2006/08/14 16:16:22 | ||
---|---|---|---|
|
| ||
while ((_count == 0) && !timedOut) | while ((_count == 0) && !timedOut) | ||
{ | { | ||
int retcode = pthread_cond_timedwait( | int r = pthread_cond_timedwait( | ||
&_rep.cond, &_rep.mutex, &waittime); | &_rep.cond, &_rep.mutex, &waittime); | ||
if ((retcode == -1) && (errno = ETIMEDOUT) && (_count == 0)) | if (((r == -1 && errno == ETIMEDOUT) || (r == ETIMEDOUT)) && _count == 0) | ||
{ | { | ||
timedOut = true; | timedOut = true; | ||
} | } |
|
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |