SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Protected Attributes | List of all members
SpinlockHolder Class Reference

#include <spinlock.h>

+ Collaboration diagram for SpinlockHolder:

Public Member Functions

 SpinlockHolder (Spinlock *spinlock)
 
 ~SpinlockHolder ()
 

Protected Attributes

Spinlockm_spinlock
 

Detailed Description

Definition at line 24 of file spinlock.h.

Constructor & Destructor Documentation

◆ SpinlockHolder()

SpinlockHolder::SpinlockHolder ( Spinlock spinlock)
inline

Definition at line 26 of file spinlock.h.

26  :
27  m_spinlock(spinlock)
28  {
29  m_spinlock->lock();
30  }
void lock()
Definition: spinlock.h:10
Spinlock * m_spinlock
Definition: spinlock.h:38

◆ ~SpinlockHolder()

SpinlockHolder::~SpinlockHolder ( )
inline

Definition at line 32 of file spinlock.h.

33  {
34  m_spinlock->unlock();
35  }
void unlock()
Definition: spinlock.h:15
Spinlock * m_spinlock
Definition: spinlock.h:38

Member Data Documentation

◆ m_spinlock

Spinlock* SpinlockHolder::m_spinlock
protected

Definition at line 38 of file spinlock.h.


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