Let Futex import base-class ctors
[folly.git] / folly / experimental / FlatCombiningPriorityQueue.h
index c8d1c163ceb2f33a47d048f173ee0c070969ebb2..5e57e313219cf1039605809f901f365b81fd8869 100644 (file)
@@ -171,8 +171,8 @@ class FlatCombiningPriorityQueue
  private:
   size_t maxSize_;
   PriorityQueue pq_;
-  detail::Futex<Atom> empty_;
-  detail::Futex<Atom> full_;
+  detail::Futex<Atom> empty_{};
+  detail::Futex<Atom> full_{};
 
   bool isTrue(detail::Futex<Atom>& futex) {
     return futex.load(std::memory_order_relaxed) != 0;
@@ -334,4 +334,4 @@ inline bool FlatCombiningPriorityQueue<T, PriorityQueue, Mutex, Atom>::tryPeek(
   } // outer while loop
 }
 
-} // namespace folly {
+} // namespace folly