issue#11: cds: changed __CDS_ guard prefix to CDSLIB_ for all .h files
[libcds.git] / cds / compiler / gcc / sparc / backoff.h
1 //$$CDS-header$$
2
3 #ifndef CDSLIB_COMPILER_GCC_SPARC_BACKOFF_H
4 #define CDSLIB_COMPILER_GCC_SPARC_BACKOFF_H
5
6 //@cond none
7
8 namespace cds { namespace backoff {
9     namespace gcc { namespace Sparc {
10
11 #       define CDS_backoff_pause_defined
12         static inline void backoff_pause( unsigned int nLoop = 0x000003FF )
13         {}
14
15 #       define CDS_backoff_nop_defined
16         static inline void backoff_nop()
17         {
18             asm volatile ( "nop;" );
19         }
20
21
22     }} // namespace gcc::Sparc
23
24     namespace platform {
25         using namespace gcc::Sparc;
26     }
27 }}  // namespace cds::backoff
28
29 //@endcond
30 #endif  // #ifndef CDSLIB_COMPILER_GCC_SPARC_BACKOFF_H