name sound mutexes differently

This commit is contained in:
Glenn Maynard
2004-04-20 01:55:23 +00:00
parent 0607e7976d
commit 3bbefc42d4
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -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;
} }
+2 -1
View File
@@ -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;