Baton::ready, a const variant of try_wait
[folly.git] / folly / IndexedMemPool.h
index 6b3fa53a2f631d7232bc19a0c51637a02edd6ce6..82ae62954d97f05b3967723c069b604e6a224f2c 100644 (file)
@@ -38,7 +38,7 @@ namespace folly {
 namespace detail {
 template <typename Pool>
 struct IndexedMemPoolRecycler;
-}
+} // namespace detail
 
 template <
     typename T,
@@ -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 {
@@ -529,7 +532,7 @@ struct IndexedMemPoolRecycler {
   }
 };
 
-}
+} // namespace detail
 
 } // namespace folly