From 8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 22 Nov 2012 20:42:33 +0000 Subject: More ByteBuffer checks: Is it used from a single thread only? git-svn-id: http://mc-server.googlecode.com/svn/trunk@1062 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ByteBuffer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/ByteBuffer.h') diff --git a/source/ByteBuffer.h b/source/ByteBuffer.h index 2a73ed597..ccc1ddfa1 100644 --- a/source/ByteBuffer.h +++ b/source/ByteBuffer.h @@ -103,6 +103,11 @@ public: protected: char * m_Buffer; int m_BufferSize; // Total size of the ringbuffer + + #ifdef _DEBUG + 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 int m_WritePos; // Where the data ends in the ringbuffer int m_ReadPos; // Where the next read will start in the ringbuffer -- cgit v1.2.3