From bd153fc68fd12af8c0dcc5b580c678e3e33d4d81 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sun, 15 May 2011 14:24:15 +0200 Subject: [PATCH] Public Thread Safety notice: --- indra/llcommon/aithreadsafe.h | 6 +++++- indra/llcommon/llthread.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/indra/llcommon/aithreadsafe.h b/indra/llcommon/aithreadsafe.h index 810aa8c2f..2575ba25f 100644 --- a/indra/llcommon/aithreadsafe.h +++ b/indra/llcommon/aithreadsafe.h @@ -278,7 +278,11 @@ struct AIReadAccessConst protected: //! Constructor used by AIReadAccess. AIReadAccessConst(AIThreadSafe& wrapper, state_type state) - : mWrapper(wrapper), mState(state) { } + : mWrapper(wrapper), mState(state) +#if AI_NEED_ACCESS_CC + , mIsCopyConstructed(false) +#endif + { } AIThreadSafe& mWrapper; //!< Reference to the object that we provide access to. state_type const mState; //!< The lock state that mWrapper is in. diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h index fa003afdd..97dac455e 100644 --- a/indra/llcommon/llthread.h +++ b/indra/llcommon/llthread.h @@ -179,6 +179,10 @@ public: protected: AIAPRPool mPool; +private: + // Disable copy construction, as si teh bomb!!! -SG + LLMutex(const LLMutex&); + LLMutex& operator=(const LLMutex&); }; #if APR_HAS_THREADS