summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/CriticalSection.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-26 17:03:44 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-26 17:03:44 +0200
commit31a326382a1184f18cfea28515cd6496b25c72de (patch)
tree5694b6dbc16111e5bae5bc5be02e0a2bf4cf090d /source/OSSupport/CriticalSection.h
parentFixed a valgrind warning in BlockDirt. (diff)
downloadcuberite-31a326382a1184f18cfea28515cd6496b25c72de.tar
cuberite-31a326382a1184f18cfea28515cd6496b25c72de.tar.gz
cuberite-31a326382a1184f18cfea28515cd6496b25c72de.tar.bz2
cuberite-31a326382a1184f18cfea28515cd6496b25c72de.tar.lz
cuberite-31a326382a1184f18cfea28515cd6496b25c72de.tar.xz
cuberite-31a326382a1184f18cfea28515cd6496b25c72de.tar.zst
cuberite-31a326382a1184f18cfea28515cd6496b25c72de.zip
Diffstat (limited to 'source/OSSupport/CriticalSection.h')
-rw-r--r--source/OSSupport/CriticalSection.h4
1 files changed, 2 insertions, 2 deletions
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;