kwave  18.07.70
Kwave::GlobalLock Class Reference

#include <GlobalLock.h>

Collaboration diagram for Kwave::GlobalLock:
Collaboration graph

Public Member Functions

 GlobalLock ()
 
virtual ~GlobalLock ()
 

Static Private Attributes

static QMutex m_global_lock
 

Detailed Description

Wrapper for an application global lock. Use with care! (might be needed for protecting external non-threadsafe libraries)

Definition at line 33 of file GlobalLock.h.

Constructor & Destructor Documentation

◆ GlobalLock()

Kwave::GlobalLock::GlobalLock ( )

Constructor, acquires the global lock

Definition at line 26 of file GlobalLock.cpp.

References m_global_lock.

27 {
28  m_global_lock.lock();
29 }
static QMutex m_global_lock
Definition: GlobalLock.h:44

◆ ~GlobalLock()

Kwave::GlobalLock::~GlobalLock ( )
virtual

Destructor, releases the global lock

Definition at line 32 of file GlobalLock.cpp.

References m_global_lock.

33 {
34  m_global_lock.unlock();
35 }
static QMutex m_global_lock
Definition: GlobalLock.h:44

Member Data Documentation

◆ m_global_lock

QMutex Kwave::GlobalLock::m_global_lock
staticprivate

global lock, use with care!

Definition at line 44 of file GlobalLock.h.

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


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