Commit a07bc128 authored by sletz's avatar sletz
Browse files

Naming of synchro primitive on Windows(3).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4743 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 24723f4a
......@@ -71,7 +71,9 @@ class SERVER_EXPORT JackWinMutex
JackWinMutex(const char* name = NULL)
{
// In recursive mode by default
fMutex = CreateMutex(NULL, FALSE, name);
char buffer[MAX_PATH];
snprintf(buffer, sizeof(buffer), "%s_%s", "JackWinMutex", name);
fMutex = CreateMutex(NULL, FALSE, buffer);
}
virtual ~JackWinMutex()
......
......@@ -42,7 +42,9 @@ class JackWinProcessSync : public JackWinMutex
JackWinProcessSync(const char* name = NULL):JackWinMutex()
{
//fEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
fEvent = CreateEvent(NULL, TRUE, FALSE, (LPCTSTR)name); // Needs ResetEvent
char buffer[MAX_PATH];
snprintf(buffer, sizeof(buffer), "%s_%s", "WinProcessSync", name);
fEvent = CreateEvent(NULL, TRUE, FALSE, buffer); // Needs ResetEvent
}
virtual ~JackWinProcessSync()
{
......
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