Browse Source

Naming of synchro primitive on Windows(2).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4742 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.9.5
sletz 13 years ago
parent
commit
24723f4adf
4 changed files with 8 additions and 7 deletions
  1. +2
    -2
      common/JackEngine.cpp
  2. +2
    -1
      common/JackMutex.h
  3. +2
    -2
      posix/JackPosixMutex.h
  4. +2
    -2
      windows/JackWinMutex.h

+ 2
- 2
common/JackEngine.cpp View File

@@ -39,8 +39,8 @@ namespace Jack
JackEngine::JackEngine(JackGraphManager* manager, JackEngine::JackEngine(JackGraphManager* manager,
JackSynchro* table, JackSynchro* table,
JackEngineControl* control) JackEngineControl* control)
: fSignal(control->fServerName)
: JackLockAble(control->fServerName),
fSignal(control->fServerName)
{ {
fGraphManager = manager; fGraphManager = manager;
fSynchroTable = table; fSynchroTable = table;


+ 2
- 1
common/JackMutex.h View File

@@ -40,7 +40,8 @@ class JackLockAble


JackMutex fMutex; JackMutex fMutex;


JackLockAble()
JackLockAble(const char* name = NULL)
:fMutex(name)
{} {}
~JackLockAble() ~JackLockAble()
{} {}


+ 2
- 2
posix/JackPosixMutex.h View File

@@ -45,7 +45,7 @@ class SERVER_EXPORT JackBasePosixMutex


public: public:


JackBasePosixMutex():fOwner(0)
JackBasePosixMutex(const char* name = NULL):fOwner(0)
{ {
int res = pthread_mutex_init(&fMutex, NULL); int res = pthread_mutex_init(&fMutex, NULL);
ThrowIf(res != 0, JackException("JackBasePosixMutex: could not init the mutex")); ThrowIf(res != 0, JackException("JackBasePosixMutex: could not init the mutex"));
@@ -70,7 +70,7 @@ class SERVER_EXPORT JackPosixMutex


public: public:


JackPosixMutex()
JackPosixMutex(const char* name = NULL)
{ {
// Use recursive mutex // Use recursive mutex
pthread_mutexattr_t mutex_attr; pthread_mutexattr_t mutex_attr;


+ 2
- 2
windows/JackWinMutex.h View File

@@ -68,10 +68,10 @@ class SERVER_EXPORT JackWinMutex


public: public:


JackWinMutex()
JackWinMutex(const char* name = NULL)
{ {
// In recursive mode by default // In recursive mode by default
fMutex = CreateMutex(NULL, FALSE, NULL);
fMutex = CreateMutex(NULL, FALSE, name);
} }


virtual ~JackWinMutex() virtual ~JackWinMutex()


Loading…
Cancel
Save