(file) Return to Semaphore.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Semaphore.cpp between version 1.2 and 1.3

version 1.2, 2006/08/09 21:12:42 version 1.3, 2006/08/14 16:16:22
Line 175 
Line 175 
  
    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;
       }       }


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2