projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add public kSlotSize to IndexedMemPool
[folly.git]
/
folly
/
IndexedMemPool.h
diff --git
a/folly/IndexedMemPool.h
b/folly/IndexedMemPool.h
index 6b3fa53a2f631d7232bc19a0c51637a02edd6ce6..899a99e1ac76e99f3f2dc76b104995968aa44638 100644
(file)
--- a/
folly/IndexedMemPool.h
+++ b/
folly/IndexedMemPool.h
@@
-506,6
+506,9
@@
struct IndexedMemPool : boost::noncopyable {
void markAllocated(Slot& slot) {
slot.localNext.store(uint32_t(-1), std::memory_order_release);
}
+
+ public:
+ static constexpr std::size_t kSlotSize = sizeof(Slot);
};
namespace detail {