summaryrefslogtreecommitdiffstats
path: root/source/ByteBuffer.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-22 21:42:33 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-22 21:42:33 +0100
commit8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d (patch)
treed14ad3030f24685a9eb24a2e566fd26ff22a7397 /source/ByteBuffer.h
parentSocketThreads fixes for crashes reported in FS #272 (diff)
downloadcuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.tar
cuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.tar.gz
cuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.tar.bz2
cuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.tar.lz
cuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.tar.xz
cuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.tar.zst
cuberite-8191ed3b93cc6903e6ad93077b0fac3fdf63cf4d.zip
Diffstat (limited to '')
-rw-r--r--source/ByteBuffer.h5
1 files changed, 5 insertions, 0 deletions
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