lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::SemLock Class Reference

Lock built on a Semaphore. More...

#include <SemLock.hh>

Public Member Functions

 SemLock ()
 Create the semaphore empty (count 0).
 
virtual void lock ()
 Take the semaphore, blocking while it is 0.
 
virtual void release ()
 Give the semaphore.
 

Detailed Description

Lock built on a Semaphore.

The semaphore starts EMPTY, so lock() blocks until release() has been called once.

Constructor & Destructor Documentation

◆ SemLock()

Pds::SemLock::SemLock ( )

Create the semaphore empty (count 0).

Member Function Documentation

◆ lock()

virtual void Pds::SemLock::lock ( )
virtual

Take the semaphore, blocking while it is 0.

◆ release()

virtual void Pds::SemLock::release ( )
virtual

Give the semaphore.


The documentation for this class was generated from the following file: