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

void PSemaphore::Signal (  ) [virtual, inherited]

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.

Implements PSync.

Reimplemented in PSyncPointAck.

Definition at line 1854 of file win32.cxx.

Referenced by PSyncPointAck::Acknowledge(), PQueueChannel::Close(), PReadWriteMutex::EndWrite(), VidTest::Main(), PQueueChannel::Open(), PQueueChannel::Read(), PCondMutex::Signal(), PSemaphore::WillBlock(), and PQueueChannel::Write().

{
  if (!ReleaseSemaphore(handle, 1, NULL))
    PAssertOS(GetLastError() != ERROR_INVALID_HANDLE);
  SetLastError(ERROR_SUCCESS);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index