PX4 Firmware
PX4 Autopilot Software http://px4.io
LockGuard Class Reference

#include <LockGuard.hpp>

Collaboration diagram for LockGuard:

Public Member Functions

 LockGuard (pthread_mutex_t &mutex)
 
 LockGuard (const LockGuard &other)=delete
 
LockGuardoperator= (const LockGuard &other)=delete
 
 ~LockGuard ()
 

Private Attributes

pthread_mutex_t & _mutex
 

Detailed Description

Definition at line 38 of file LockGuard.hpp.

Constructor & Destructor Documentation

◆ LockGuard() [1/2]

LockGuard::LockGuard ( pthread_mutex_t &  mutex)
inlineexplicit

Definition at line 41 of file LockGuard.hpp.

References _mutex, and operator=().

Here is the call graph for this function:

◆ LockGuard() [2/2]

LockGuard::LockGuard ( const LockGuard other)
delete

◆ ~LockGuard()

LockGuard::~LockGuard ( )
inline

Definition at line 50 of file LockGuard.hpp.

References _mutex.

Member Function Documentation

◆ operator=()

LockGuard& LockGuard::operator= ( const LockGuard other)
delete

Referenced by LockGuard().

Here is the caller graph for this function:

Member Data Documentation

◆ _mutex

pthread_mutex_t& LockGuard::_mutex
private

Definition at line 56 of file LockGuard.hpp.

Referenced by LockGuard(), and ~LockGuard().


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