git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4742 0c269be4-1314-0410-8aa9-9f06e86f4224tags/1.9.9.5
@@ -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; | ||||
@@ -40,7 +40,8 @@ class JackLockAble | |||||
JackMutex fMutex; | JackMutex fMutex; | ||||
JackLockAble() | |||||
JackLockAble(const char* name = NULL) | |||||
:fMutex(name) | |||||
{} | {} | ||||
~JackLockAble() | ~JackLockAble() | ||||
{} | {} | ||||
@@ -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; | ||||
@@ -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() | ||||