kwave  18.07.70
GlobalLock.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  GlobalLock.cpp - application global lock
3  -------------------
4  begin : Jan 02 2014
5  copyright : (C) 2014 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "config.h"
19 
20 #include "libkwave/GlobalLock.h"
21 
22 // static initializer
24 
25 //***************************************************************************
27 {
28  m_global_lock.lock();
29 }
30 
31 //***************************************************************************
33 {
34  m_global_lock.unlock();
35 }
36 
37 //*****************************************************************************
38 //*****************************************************************************
static QMutex m_global_lock
Definition: GlobalLock.h:44
virtual ~GlobalLock()
Definition: GlobalLock.cpp:32