From 31a326382a1184f18cfea28515cd6496b25c72de Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 26 Oct 2012 15:03:44 +0000 Subject: Critical sections aren't heap-allocated in linux anymore. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1012 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/OSSupport/CriticalSection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/OSSupport/CriticalSection.h') diff --git a/source/OSSupport/CriticalSection.h b/source/OSSupport/CriticalSection.h index 9852a2e6c..c7607ee70 100644 --- a/source/OSSupport/CriticalSection.h +++ b/source/OSSupport/CriticalSection.h @@ -28,8 +28,8 @@ private: #ifdef _WIN32 CRITICAL_SECTION m_CriticalSection; #else // _WIN32 - void* m_CriticalSectionPtr ALIGN_8; // Pointer to a CRITICAL_SECTION object - void* m_Attributes ALIGN_8; + pthread_mutex_t m_CriticalSection; + pthread_mutexattr_t m_Attributes; #endif // else _WIN32 } ALIGN_8; -- cgit v1.2.3