From f7e317f9dd3b3d64be14275a57e12e0361de8ddb Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 27 Oct 2004 22:12:17 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageThreads.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/stepmania/src/RageThreads.h b/stepmania/src/RageThreads.h index 042dcd0f84..42bcccb97d 100644 --- a/stepmania/src/RageThreads.h +++ b/stepmania/src/RageThreads.h @@ -57,6 +57,18 @@ namespace Checkpoints class MutexImpl; class RageMutex { +public: + CString GetName() const { return m_sName; } + void SetName( const CString &s ) { m_sName = s; } + virtual void Lock(); + virtual bool TryLock(); + virtual void Unlock(); + virtual bool IsLockedByThisThread() const; + + RageMutex( CString name ); + virtual ~RageMutex(); + +private: MutexImpl *m_pMutex; CString m_sName; @@ -66,17 +78,6 @@ class RageMutex int m_LockCnt; void MarkLockedMutex(); - -public: - CString GetName() const { return m_sName; } - void SetName( const CString &s ) { m_sName = s; } - void Lock(); - bool TryLock(); - void Unlock(); - bool IsLockedByThisThread() const; - - RageMutex( CString name ); - ~RageMutex(); }; /* Lock a mutex on construction, unlock it on destruction. Helps for functions