SET(DPL_FRAMEWORK_TEST_SOURCES
${PROJECT_SOURCE_DIR}/src/framework/src/assert.cpp
- ${PROJECT_SOURCE_DIR}/src/framework/src/atomic.cpp
${PROJECT_SOURCE_DIR}/src/framework/src/binary_queue.cpp
${PROJECT_SOURCE_DIR}/src/framework/src/colors.cpp
${PROJECT_SOURCE_DIR}/src/framework/src/exception.cpp
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * @file atomic.h
- * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
- * @version 1.0
- * @brief This file is the header file of atomic
- */
-#ifndef DPL_ATOMIC_H
-#define DPL_ATOMIC_H
-
-#pragma GCC system_header
-#include <glib.h>
-
-namespace DPL {
-class Atomic
-{
- public:
- typedef gint ValueType;
-
- private:
- volatile ValueType m_value;
-
- public:
- Atomic(ValueType value = static_cast<ValueType>(0));
-
- ValueType ExchangeAndAdd(ValueType value);
- bool CompareAndExchange(ValueType oldValue, ValueType newValue);
- bool operator--();
- void operator++();
-
- operator ValueType() const;
-};
-} // namespace DPL
-
-#endif // DPL_ATOMIC_H
#include <vector>
#include <memory>
-#include <dpl/atomic.h>
#include <dpl/availability.h>
#include <dpl/colors.h>
#include <dpl/gdbbacktrace.h>
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * @file atomic.cpp
- * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
- * @version 1.0
- * @brief This file is the implementation file of atomic
- */
-#include <stddef.h>
-#include <dpl/atomic.h>
-
-namespace DPL {
-Atomic::Atomic(ValueType value) :
- m_value(value)
-{}
-
-Atomic::ValueType Atomic::ExchangeAndAdd(ValueType value)
-{
- return g_atomic_int_add(const_cast<gint* >(&m_value), value);
-}
-
-bool Atomic::CompareAndExchange(ValueType oldValue, ValueType newValue)
-{
- return g_atomic_int_compare_and_exchange(const_cast<gint* >(&m_value),
- oldValue,
- newValue);
-}
-
-bool Atomic::operator--()
-{
- return g_atomic_int_dec_and_test(const_cast<gint* >(&m_value)) != TRUE;
-}
-
-void Atomic::operator++()
-{
- g_atomic_int_inc(const_cast<gint* >(&m_value));
-}
-
-Atomic::operator ValueType() const
-{
- return g_atomic_int_get(const_cast<gint* >(&m_value));
-}
-} // namespace DPL
#include <functional>
#include <memory>
#include <string>
+#include <unistd.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "dpl/test/test_runner.h"
-#include <stdint.h>
+#include <climits>
+#include <cstdint>
#include <yaca_key.h>
#include <yaca_types.h>