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

void PSyncPointAck::Signal (  )  [virtual]

If there are waiting (blocked) threads then unblock the first one that was blocked. If no waiting threads and the count is less than the maximum then increment the semaphore.

Unlike the PSyncPoint::Signal() this function will block until the target thread that was blocked by the Wait() function has resumed execution and called the Acknowledge() function.

The waitTime# parameter is used as a maximum amount of time to wait for the achnowledgement to be returned from the other thread.

Reimplemented from PSemaphore.

Definition at line 2204 of file osutils.cxx.

References PSemaphore::Signal(), and PSemaphore::Wait().

{
  PSyncPoint::Signal();
  ack.Wait();
}


Generated by  Doxygen 1.6.0   Back to index