From 321b25921379ad7c5196b9468acc4291ed375ba9 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 5 Dec 2013 10:33:26 +0100 Subject: [PATCH] ByteBuffer: Fixed optimization failures with threading checks. --- src/ByteBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h index a9dd7f5e..95c69020 100644 --- a/src/ByteBuffer.h +++ b/src/ByteBuffer.h @@ -123,7 +123,7 @@ protected: int m_BufferSize; // Total size of the ringbuffer #ifdef _DEBUG - unsigned long m_ThreadID; // Thread that is currently accessing the object, checked via cSingleThreadAccessChecker + volatile unsigned long m_ThreadID; // Thread that is currently accessing the object, checked via cSingleThreadAccessChecker #endif // _DEBUG int m_DataStart; // Where the data starts in the ringbuffer