Logo Search packages:      
Sourcecode: pwlib version File versions

PWaitAndSignal::PWaitAndSignal ( const PSync &  sem,
BOOL  wait = TRUE 
) [inline]

Create the semaphore wait instance. This will wait on the specified semaphore using the Wait()# function before returning.

Parameters:
sem  Semaphore descendent to wait/signal.
wait  Wait for semaphore before returning.

Definition at line 107 of file psync.h.

      : sync((PSync &)sem)
    { if (wait) sync.Wait(); }


Generated by  Doxygen 1.6.0   Back to index