Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::Sync::Lock Class Reference

Locks the Mutex object in the Sync object. More...

#include <Sync.h>

Inheritance diagram for sf::Sync::Lock:
Collaboration diagram for sf::Sync::Lock:

Public Member Functions

 Lock (const Sync *sync, bool try_sync=false)
 Locks the Mutex object in the Sync object.
 
- 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.
 

Detailed Description

Locks the Mutex object in the Sync object.

Constructor & Destructor Documentation

◆ Lock()

sf::Sync::Lock::Lock ( const Sync sync,
bool  try_sync = false 
)
inlineexplicit

Locks the Mutex object in the Sync object.


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