name sound mutexes differently
This commit is contained in:
@@ -190,6 +190,8 @@ bool RageSound::Load(CString sSoundFilePath, int precache)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_Mutex.SetName( ssprintf("RageSound (%s)", Basename(sSoundFilePath).c_str() ) );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class RageMutex
|
|||||||
friend struct RageMutexImpl;
|
friend struct RageMutexImpl;
|
||||||
|
|
||||||
RageMutexImpl *mut;
|
RageMutexImpl *mut;
|
||||||
const CString m_sName;
|
CString m_sName;
|
||||||
|
|
||||||
int m_UniqueID;
|
int m_UniqueID;
|
||||||
|
|
||||||
@@ -59,6 +59,7 @@ class RageMutex
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
CString GetName() const { return m_sName; }
|
CString GetName() const { return m_sName; }
|
||||||
|
void SetName( const CString &s ) { m_sName = s; }
|
||||||
void Lock();
|
void Lock();
|
||||||
void Unlock();
|
void Unlock();
|
||||||
bool IsLockedByThisThread() const;
|
bool IsLockedByThisThread() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user