Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PIntCondMutex::Condition (  )  [virtual]

This is the condition that must be met for the WaitCondition() function to acquire the mutex.

Returns:
TRUE if condition is met.

Implements PCondMutex.

Definition at line 2282 of file osutils.cxx.

References GE, GT, LE, and LT.

{
  switch (operation) {
    case LT :
      return value < target;
    case LE :
      return value <= target;
    case GE :
      return value >= target;
    case GT :
      return value > target;
    default :
      break;
  }
  return value == target;
}


Generated by  Doxygen 1.6.0   Back to index