#include <mutex>
#include <glog/logging.h>
+#include <folly/Portability.h>
-#ifndef __x86_64__
+#if !FOLLY_X64
# error "SmallLocks.h is currently x64-only."
#endif
-#include "folly/Portability.h"
-
namespace folly {
//////////////////////////////////////////////////////////////////////
* linux this varies by kernel version from 1ms to 10ms).
*/
struct timespec ts = { 0, 500000 };
- nanosleep(&ts, NULL);
+ nanosleep(&ts, nullptr);
}
}
};