Naming of synchro primitive on Windows(2).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4742 0c269be4-1314-0410-8aa9-9f06e86f4224
This commit is contained in:
sletz 2012-01-27 17:59:57 +00:00
parent f5fd13a2ca
commit 24723f4adf
4 changed files with 8 additions and 7 deletions

View File

@ -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;

View File

@ -40,7 +40,8 @@ class JackLockAble
JackMutex fMutex;
JackLockAble()
JackLockAble(const char* name = NULL)
:fMutex(name)
{}
~JackLockAble()
{}

View File

@ -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;

View File

@ -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()