11 #ifndef ASIO_DETAIL_GCC_ARM_FENCED_BLOCK_HPP 12 #define ASIO_DETAIL_GCC_ARM_FENCED_BLOCK_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if defined(__GNUC__) && defined(__arm__) 27 class gcc_arm_fenced_block
35 explicit gcc_arm_fenced_block(half_t)
40 explicit gcc_arm_fenced_block(full_t)
46 ~gcc_arm_fenced_block()
54 #if defined(__ARM_ARCH_4__) \ 55 || defined(__ARM_ARCH_4T__) \ 56 || defined(__ARM_ARCH_5__) \ 57 || defined(__ARM_ARCH_5E__) \ 58 || defined(__ARM_ARCH_5T__) \ 59 || defined(__ARM_ARCH_5TE__) \ 60 || defined(__ARM_ARCH_5TEJ__) \ 61 || defined(__ARM_ARCH_6__) \ 62 || defined(__ARM_ARCH_6J__) \ 63 || defined(__ARM_ARCH_6K__) \ 64 || defined(__ARM_ARCH_6Z__) \ 65 || defined(__ARM_ARCH_6ZK__) \ 66 || defined(__ARM_ARCH_6T2__) 67 # if defined(__thumb__) 69 __asm__ __volatile__ (
"" : : :
"memory");
70 # else // defined(__thumb__) 72 __asm__ __volatile__ (
"swp %0, %1, [%2]" 73 :
"=&r"(a) :
"r"(1),
"r"(&
b) :
"memory",
"cc");
74 # endif // defined(__thumb__) 77 __asm__ __volatile__ (
"dmb" : : :
"memory");
87 #endif // defined(__GNUC__) && defined(__arm__) 89 #endif // ASIO_DETAIL_GCC_ARM_FENCED_BLOCK_HPP
asio::basic_streambuf< Allocator > & b