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

PIntCondMutex & PIntCondMutex::operator+= ( int  inc  ) 

Add to condition value. Use the Wait() function to acquire the mutex, modify the value, then release the mutex, possibly releasing the thread in the WaitCondition() function if the condition was met by the operation.

Returns:
The object reference for consecutive operations in the same statement.

Definition at line 2318 of file osutils.cxx.

References PCondMutex::Signal().

{
  Wait();
  value += inc;
  Signal();
  return *this;
}


Generated by  Doxygen 1.6.0   Back to index