Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::TStaticSync< T >::Lock Class Reference

#include <TStaticSync.h>

Inheritance diagram for sf::TStaticSync< T >::Lock:
Collaboration diagram for sf::TStaticSync< T >::Lock:

Public Member Functions

 Lock ()
 Default constructor.
 
 Lock (bool try_lock)
 Try constructor.
 
- Public Member Functions inherited from sf::Mutex::Lock
 Lock (const Mutex &mutex, bool try_lock=false)
 Constructor.
 
 ~Lock ()
 Destructor.
 
bool acquire (bool try_lock=false, const TimeSpec &timeout={})
 Returns true when if it was acquired.
 
bool release ()
 
 operator bool () const
 Returns true if the class was locked. Always true when try_lock is false.
 

Constructor & Destructor Documentation

◆ Lock() [1/2]

template<typename T >
sf::TStaticSync< T >::Lock::Lock ( )
inline

Default constructor.

◆ Lock() [2/2]

template<typename T >
sf::TStaticSync< T >::Lock::Lock ( bool  try_lock)
inlineexplicit

Try constructor.

Parameters
try_lockWhen true the constructor returns even when not locked.

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