<commit_before>/***************************************************************************
                          autodeleteobject.h  -  class AutoDeleteObject
                             -------------------
    begin                : mar avr 15 2003
    copyright            : (C) 2003 by <NAME>
    email                : <EMAIL>
 ***************************************************************************/

/***************************************************************************
 * Copyright (C) The Apache Software Foundation. All rights reserved.      *
 *                                                                         *
 * This software is published under the terms of the Apache Software       *
 * License version 1.1, a copy of which has been included with this        *
 * distribution in the LICENSE.txt file.                                   *
 ***************************************************************************/
 
#ifndef _LOG4CXX_HELPERS_OBJECT_IMPL_H
#define _LOG4CXX_HELPERS_OBJECT_IMPL_H

#include <log4cxx/config.h>
#include <log4cxx/helpers/object.h>

#ifdef HAVE_LINUX_ATOMIC_OPERATIONS
#include <asm/atomic.h>
#elif defined(HAVE_PTHREAD)
#include <log4cxx/helpers/criticalsection.h>
#endif

#include <log4cxx/helpers/mutex.h>
#include <log4cxx/helpers/condition.h>

namespace log4cxx
{
	namespace helpers
	{
		/** Implementation class for Object.*/
		class ObjectImpl : public virtual Object
		{
		public:
			ObjectImpl();
			virtual ~ObjectImpl();
			void addRef();
			void releaseRef();
			virtual void lock();
			virtual void unlock();
			virtual void wait();
			virtual void notify();

		protected:
#ifdef HAVE_LINUX_ATOMIC_OPERATIONS
			volatile atomic_t ref;
#elif defined(HAVE_PTHREAD)
			CriticalSection refCs;
			unsigned int ref;
#elif defined(HAVE_MS_THREAD)
			long ref;
#else
			unsigned int ref;
#endif
			Mutex mutex;
			Condition cond;
		};
	};
};

#endif //_LOG4CXX_HELPERS_OBJECT_IMPL_H<commit_msg>canceled last check in<commit_after>/***************************************************************************
                          autodeleteobject.h  -  class AutoDeleteObject
                             -------------------
    begin                : mar avr 15 2003
    copyright            : (C) 2003 by <NAME>
    email                : <EMAIL>
 ***************************************************************************/

/***************************************************************************
 * Copyright (C) The Apache Software Foundation. All rights reserved.      *
 *                                                                         *
 * This software is published under the terms of the Apache Software       *
 * License version 1.1, a copy of which has been included with this        *
 * distribution in the LICENSE.txt file.                                   *
 ***************************************************************************/
 
#ifndef _LOG4CXX_HELPERS_OBJECT_IMPL_H
#define _LOG4CXX_HELPERS_OBJECT_IMPL_H

#include <log4cxx/config.h>
#include <log4cxx/helpers/object.h>

#ifdef HAVE_LINUX_ATOMIC_OPERATIONS
#include <asm/atomic.h>
#elif defined(HAVE_PTHREAD)
#include <log4cxx/helpers/criticalsection.h>
#endif

#include <log4cxx/helpers/mutex.h>
#include <log4cxx/helpers/condition.h>

namespace log4cxx
{
	namespace helpers
	{
		/** Implementation class for Object.*/
		class ObjectImpl : public virtual Object
		{
		public:
			ObjectImpl();
			virtual ~ObjectImpl();
			void addRef();
			void releaseRef();
			virtual void lock();
			virtual void unlock();
			virtual void wait();
			virtual void notify();

		protected:
#ifdef HAVE_LINUX_ATOMIC_OPERATIONS
			atomic_t ref;
#elif defined(HAVE_PTHREAD)
			CriticalSection refCs;
			unsigned int ref;
#elif defined(HAVE_MS_THREAD)
			long ref;
#else
			unsigned int ref;
#endif
			Mutex mutex;
			Condition cond;
		};
	};
};

#endif //_LOG4CXX_HELPERS_OBJECT_IMPL_H
{'fraction_non_alphanumeric': 0.23272357723577236, 'fraction_numerical': 0.010670731707317074, 'mean_word_length': 2.767464114832536, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3729744', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1016, 'n_words': 271}