PonyPlayer
atomicops.h 文件参考
#include <cerrno>
#include <cassert>
#include <type_traits>
#include <cstdint>
#include <ctime>
#include <atomic>
#include <utility>

浏览源代码.

class  moodycamel::weak_atomic< T >
 
class  moodycamel::spsc_sema::LightweightSemaphore
 

命名空间

namespace  moodycamel
 
namespace  moodycamel::spsc_sema
 

宏定义

#define AE_ARCH_UNKNOWN
 
#define AE_UNUSED(x)   ((void)x)
 
#define AE_NO_TSAN
 
#define AE_TSAN_ANNOTATE_RELEASE()
 
#define AE_TSAN_ANNOTATE_ACQUIRE()
 
#define AE_FORCEINLINE   inline
 
#define AE_ALIGN(x)   __attribute__((aligned(x)))
 
#define AE_USE_STD_ATOMIC_FOR_WEAK_ATOMIC
 

枚举

enum  moodycamel::memory_order {
  moodycamel::memory_order_relaxed , moodycamel::memory_order_acquire , moodycamel::memory_order_release , moodycamel::memory_order_acq_rel ,
  moodycamel::memory_order_seq_cst , moodycamel::memory_order_sync = memory_order_seq_cst
}
 

函数

AE_FORCEINLINE void moodycamel::compiler_fence (memory_order order) AE_NO_TSAN
 
AE_FORCEINLINE void moodycamel::fence (memory_order order) AE_NO_TSAN
 

宏定义说明

◆ AE_ALIGN

#define AE_ALIGN (   x)    __attribute__((aligned(x)))

◆ AE_ARCH_UNKNOWN

#define AE_ARCH_UNKNOWN

◆ AE_FORCEINLINE

#define AE_FORCEINLINE   inline

◆ AE_NO_TSAN

#define AE_NO_TSAN

◆ AE_TSAN_ANNOTATE_ACQUIRE

#define AE_TSAN_ANNOTATE_ACQUIRE ( )

◆ AE_TSAN_ANNOTATE_RELEASE

#define AE_TSAN_ANNOTATE_RELEASE ( )

◆ AE_UNUSED

#define AE_UNUSED (   x)    ((void)x)

◆ AE_USE_STD_ATOMIC_FOR_WEAK_ATOMIC

#define AE_USE_STD_ATOMIC_FOR_WEAK_ATOMIC