diff options
Diffstat (limited to 'include/EASTL/internal/atomic/atomic_flag_standalone.h')
-rw-r--r-- | include/EASTL/internal/atomic/atomic_flag_standalone.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/include/EASTL/internal/atomic/atomic_flag_standalone.h b/include/EASTL/internal/atomic/atomic_flag_standalone.h deleted file mode 100644 index b5284be..0000000 --- a/include/EASTL/internal/atomic/atomic_flag_standalone.h +++ /dev/null @@ -1,69 +0,0 @@ -///////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Electronic Arts Inc. All rights reserved. -///////////////////////////////////////////////////////////////////////////////// - - -#ifndef EASTL_ATOMIC_INTERNAL_FLAG_STANDALONE_H -#define EASTL_ATOMIC_INTERNAL_FLAG_STANDALONE_H - -#if defined(EA_PRAGMA_ONCE_SUPPORTED) - #pragma once -#endif - - -namespace eastl -{ - - -//////////////////////////////////////////////////////////////////////////////// -// -// bool atomic_flag_test_and_set(eastl::atomic<T>*) -// -EASTL_FORCE_INLINE bool atomic_flag_test_and_set(eastl::atomic_flag* atomicObj) EA_NOEXCEPT -{ - return atomicObj->test_and_set(); -} - -template <typename Order> -EASTL_FORCE_INLINE bool atomic_flag_test_and_set_explicit(eastl::atomic_flag* atomicObj, Order order) -{ - return atomicObj->test_and_set(order); -} - - -//////////////////////////////////////////////////////////////////////////////// -// -// bool atomic_flag_clear(eastl::atomic<T>*) -// -EASTL_FORCE_INLINE void atomic_flag_clear(eastl::atomic_flag* atomicObj) -{ - atomicObj->clear(); -} - -template <typename Order> -EASTL_FORCE_INLINE void atomic_flag_clear_explicit(eastl::atomic_flag* atomicObj, Order order) -{ - atomicObj->clear(order); -} - - -//////////////////////////////////////////////////////////////////////////////// -// -// bool atomic_flag_test(eastl::atomic<T>*) -// -EASTL_FORCE_INLINE bool atomic_flag_test(eastl::atomic_flag* atomicObj) -{ - return atomicObj->test(); -} - -template <typename Order> -EASTL_FORCE_INLINE bool atomic_flag_test_explicit(eastl::atomic_flag* atomicObj, Order order) -{ - return atomicObj->test(order); -} - - -} // namespace eastl - - -#endif /* EASTL_ATOMIC_INTERNAL_FLAG_STANDALONE_H */ |