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