Commit 24723f4a authored by sletz's avatar sletz
Browse files

Naming of synchro primitive on Windows(2).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4742 0c269be4-1314-0410-8aa9-9f06e86f4224
parent f5fd13a2
......@@ -39,8 +39,8 @@ namespace Jack
JackEngine::JackEngine(JackGraphManager* manager,
JackSynchro* table,
JackEngineControl* control)
: fSignal(control->fServerName)
: JackLockAble(control->fServerName),
fSignal(control->fServerName)
{
fGraphManager = manager;
fSynchroTable = table;
......
......@@ -40,7 +40,8 @@ class JackLockAble
JackMutex fMutex;
JackLockAble()
JackLockAble(const char* name = NULL)
:fMutex(name)
{}
~JackLockAble()
{}
......
......@@ -45,7 +45,7 @@ class SERVER_EXPORT JackBasePosixMutex
public:
JackBasePosixMutex():fOwner(0)
JackBasePosixMutex(const char* name = NULL):fOwner(0)
{
int res = pthread_mutex_init(&fMutex, NULL);
ThrowIf(res != 0, JackException("JackBasePosixMutex: could not init the mutex"));
......@@ -70,7 +70,7 @@ class SERVER_EXPORT JackPosixMutex
public:
JackPosixMutex()
JackPosixMutex(const char* name = NULL)
{
// Use recursive mutex
pthread_mutexattr_t mutex_attr;
......
......@@ -68,10 +68,10 @@ class SERVER_EXPORT JackWinMutex
public:
JackWinMutex()
JackWinMutex(const char* name = NULL)
{
// In recursive mode by default
fMutex = CreateMutex(NULL, FALSE, NULL);
fMutex = CreateMutex(NULL, FALSE, name);
}
virtual ~JackWinMutex()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment