Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/JackGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static bool gKeyNotificationThreadInitialized = jack_tls_allocate_key(&JackGloba
jack_tls_key JackGlobals::fKeyLogFunction;
static bool fKeyLogFunctionInitialized = jack_tls_allocate_key(&JackGlobals::fKeyLogFunction);

JackMutex* JackGlobals::fOpenMutex = new JackMutex();
JackMutex* JackGlobals::fSynchroMutex = new JackMutex();
std::unique_ptr<JackMutex> JackGlobals::fOpenMutex(new JackMutex());
std::unique_ptr<JackMutex> JackGlobals::fSynchroMutex(new JackMutex());
volatile bool JackGlobals::fServerRunning = false;
JackClient* JackGlobals::fClientTable[CLIENT_NUM] = {};

Expand Down
6 changes: 4 additions & 2 deletions common/JackGlobals.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "JackSystemDeps.h"
#include "JackConstants.h"

#include <memory>

#ifdef __CLIENTDEBUG__
#include <iostream>
#include <fstream>
Expand All @@ -40,8 +42,8 @@ struct JackGlobals {
static jack_tls_key fRealTimeThread;
static jack_tls_key fNotificationThread;
static jack_tls_key fKeyLogFunction;
static JackMutex* fOpenMutex;
static JackMutex* fSynchroMutex;
static std::unique_ptr<JackMutex> fOpenMutex;
static std::unique_ptr<JackMutex> fSynchroMutex;
static volatile bool fServerRunning;
static JackClient* fClientTable[CLIENT_NUM];
static bool fVerbose;
Expand Down