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

BOOL PSemaphore::WillBlock (  )  const [virtual, inherited]

Determine if the semaphore would block if the Wait()# function were called.

TRUE if semaphore will block when Wait() is called.

Definition at line 1862 of file win32.cxx.

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

  PSemaphore * unconst = (PSemaphore *)this;

  if (!unconst->Wait(0))
    return TRUE;

  return FALSE;

Generated by  Doxygen 1.6.0   Back to index