Reverted commit D4035769
[folly.git] / folly / AtomicIntrusiveLinkedList.h
index a78b685f69897af1950d869df53c04b7b5f24fa8..e74554220123a1bf7dc93a6edffdefdfe2e66a43 100644 (file)
@@ -68,7 +68,7 @@ class AtomicIntrusiveLinkedList {
   }
 
   bool empty() const {
-    return head_ == nullptr;
+    return head_.load() == nullptr;
   }
 
   /**