Commit 36f174f9 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 0

Don't attempt to implicitly convert an atomic<T> to bool

Summary: MSVC doesn't like it, so the other uses were changed to .load() explicitly a while back, but this use has been added since then.

Reviewed By: yfeldblum

Differential Revision: D3255261

fb-gh-sync-id: 11d49902eb3ef7113a7c57cc760353554a487496
fbshipit-source-id: 11d49902eb3ef7113a7c57cc760353554a487496
parent 6959fbe7
...@@ -68,7 +68,7 @@ class AtomicIntrusiveLinkedList { ...@@ -68,7 +68,7 @@ class AtomicIntrusiveLinkedList {
} }
bool empty() const { bool empty() const {
return head_ == nullptr; return head_.load() == nullptr;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment