diff options
| author | callum_linden <none@none> | 2014-10-17 14:46:37 -0700 | 
|---|---|---|
| committer | callum_linden <none@none> | 2014-10-17 14:46:37 -0700 | 
| commit | 5f9b595fbef62ebe61c2e93cfc43066955d39f8a (patch) | |
| tree | ae37729d3f8568ee157dbb3e5f248485f57b33a5 | |
| parent | 2469d3aab1b541a7383f40662f7e409ae37c67eb (diff) | |
Update to build on Xcode 6.0: cleaned up some Boostisms and removed some dead code
| -rwxr-xr-x | indra/llmessage/lliopipe.h | 72 | 
1 files changed, 11 insertions, 61 deletions
| diff --git a/indra/llmessage/lliopipe.h b/indra/llmessage/lliopipe.h index 9a0a427efd..7fd4cee8ba 100755 --- a/indra/llmessage/lliopipe.h +++ b/indra/llmessage/lliopipe.h @@ -56,11 +56,8 @@ void pump_debug(const char *file, S32 line);  /**   * intrusive pointer support   */ -namespace boost -{ -	void intrusive_ptr_add_ref(LLIOPipe* p); -	void intrusive_ptr_release(LLIOPipe* p); -}; +void intrusive_ptr_add_ref(LLIOPipe* p); +void intrusive_ptr_release(LLIOPipe* p);  /**    * @class LLIOPipe @@ -251,68 +248,21 @@ protected:  		LLPumpIO* pump) = 0;  private: -	friend void boost::intrusive_ptr_add_ref(LLIOPipe* p); -	friend void boost::intrusive_ptr_release(LLIOPipe* p); +	friend void intrusive_ptr_add_ref(LLIOPipe* p); +	friend void intrusive_ptr_release(LLIOPipe* p);  	U32 mReferenceCount;  }; -namespace boost +inline void intrusive_ptr_add_ref(LLIOPipe* p)  { -	inline void intrusive_ptr_add_ref(LLIOPipe* p) -	{ -		++p->mReferenceCount; -	} -	inline void intrusive_ptr_release(LLIOPipe* p) +	++p->mReferenceCount; +} +inline void intrusive_ptr_release(LLIOPipe* p) +{ +	if(p && 0 == --p->mReferenceCount)  	{ -		if(p && 0 == --p->mReferenceCount) -		{ -			delete p; -		} +		delete p;  	} -}; - - -#if 0 -/**  - * @class LLIOBoiler - * @brief This class helps construct new LLIOPipe specializations - * @see LLIOPipe - * - * THOROUGH_DESCRIPTION - */ -class LLIOBoiler : public LLIOPipe -{ -public: -	LLIOBoiler(); -	virtual ~LLIOBoiler(); - -protected: -	/* @name LLIOPipe virtual implementations -	 */ -	//@{ -	/**  -	 * @brief Process the data in buffer -	 */ -	virtual EStatus process_impl( -		const LLChannelDescriptors& channels, -		buffer_ptr_t& buffer, -		bool& eos, -		LLSD& context, -		LLPumpIO* pump); -	//@} -}; - -// virtual -LLIOPipe::EStatus process_impl( -	const LLChannelDescriptors& channels, -	buffer_ptr_t& buffer, -	bool& eos, -	LLSD& context, -	LLPumpIO* pump) -{ -	return STATUS_NOT_IMPLEMENTED;  } -#endif // #if 0 - use this block as a boilerplate -  #endif // LL_LLIOPIPE_H | 
