CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
hardware_pause.h
Go to the documentation of this file.
1 #ifndef FWCore_Concurrency_hardware_pause_h
2 #define FWCore_Concurrency_hardware_pause_h
3 // -*- C++ -*-
4 //
5 // Package: Concurrency
6 // Class : hardware_pause
7 //
18 //
19 // Original Author: Chris Jones
20 // Created: Thu Feb 21 13:55:57 CST 2013
21 // $Id$
22 //
23 
24 //NOTE: Taken from libdispatch shims/atomics.h
25 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
26 #define hardware_pause() asm("")
27 #endif
28 #if defined(__x86_64__) || defined(__i386__)
29 #undef hardware_pause
30 #define hardware_pause() asm("pause")
31 #endif
32 
33 
34 #endif