mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
28 lines
713 B
C
28 lines
713 B
C
|
// Copyright (c) 2006-2018 Maxim Khizhinsky
|
||
|
//
|
||
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||
|
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||
|
|
||
|
#ifndef CDSLIB_COMPILER_GCC_ARM7_BACKOFF_H
|
||
|
#define CDSLIB_COMPILER_GCC_ARM7_BACKOFF_H
|
||
|
|
||
|
//@cond none
|
||
|
|
||
|
namespace cds { namespace backoff {
|
||
|
namespace gcc { namespace arm7 {
|
||
|
|
||
|
# define CDS_backoff_hint_defined
|
||
|
static inline void backoff_hint()
|
||
|
{
|
||
|
asm volatile( "yield" ::: "memory" );
|
||
|
}
|
||
|
}} // namespace gcc::arm7
|
||
|
|
||
|
namespace platform {
|
||
|
using namespace gcc::arm7;
|
||
|
}
|
||
|
}} // namespace cds::backoff
|
||
|
|
||
|
//@endcond
|
||
|
#endif // #ifndef CDSLIB_COMPILER_GCC_ARM7_BACKOFF_H
|