Add MockTimeoutManager
[folly.git] / folly / PackedSyncPtr.h
index 6e8cca53dcd8a06c61b02b8b56d9185af5471620..97ff844c23595f39fbc477b10b2d0aeaee5617bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2012 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #ifndef FOLLY_PACKEDSYNCPTR_H_
 #define FOLLY_PACKEDSYNCPTR_H_
 
-#ifndef __x86_64__
-# error "PackedSyncPtr is x64-specific code."
+#include <folly/Portability.h>
+
+#if !FOLLY_X64 && !FOLLY_PPC64
+# error "PackedSyncPtr is x64 and ppc64 specific code."
 #endif
 
 /*
@@ -51,7 +53,7 @@
  * @author Jordan DeLong <delong.j@fb.com>
  */
 
-#include "folly/SmallLocks.h"
+#include <folly/SmallLocks.h>
 #include <type_traits>
 #include <glog/logging.h>
 
@@ -105,7 +107,7 @@ public:
   reference operator*() const { return *get(); }
   reference operator[](std::ptrdiff_t i) const { return get()[i]; }
 
-  // Syncronization (logically const, even though this mutates our
+  // Synchronization (logically const, even though this mutates our
   // locked state: you can lock a const PackedSyncPtr<T> to read it).
   void lock() const { data_.lock(); }
   void unlock() const { data_.unlock(); }
@@ -147,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr<void>) == 8,
 }
 
 #endif
-