projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move CacheLocality out of detail/ and into concurrency/
[folly.git]
/
folly
/
IndexedMemPool.h
diff --git
a/folly/IndexedMemPool.h
b/folly/IndexedMemPool.h
index 275d441cc0e646746bd1f142f257853050d17d7e..6b3fa53a2f631d7232bc19a0c51637a02edd6ce6 100644
(file)
--- a/
folly/IndexedMemPool.h
+++ b/
folly/IndexedMemPool.h
@@
-16,14
+16,16
@@
#pragma once
#pragma once
-#include <type_traits>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
+
+#include <type_traits>
+
#include <boost/noncopyable.hpp>
#include <folly/AtomicStruct.h>
#include <folly/Portability.h>
#include <boost/noncopyable.hpp>
#include <folly/AtomicStruct.h>
#include <folly/Portability.h>
-#include <folly/
detail
/CacheLocality.h>
+#include <folly/
concurrency
/CacheLocality.h>
#include <folly/portability/SysMman.h>
#include <folly/portability/Unistd.h>
#include <folly/portability/SysMman.h>
#include <folly/portability/Unistd.h>
@@
-497,7
+499,7
@@
struct IndexedMemPool : boost::noncopyable {
}
AtomicStruct<TaggedPtr,Atom>& localHead() {
}
AtomicStruct<TaggedPtr,Atom>& localHead() {
- auto stripe =
detail::
AccessSpreader<Atom>::current(NumLocalLists);
+ auto stripe = AccessSpreader<Atom>::current(NumLocalLists);
return local_[stripe].head;
}
return local_[stripe].head;
}