Properly init collectDone_
authorAndrii Grynenko <andrii@fb.com>
Wed, 2 Dec 2015 01:23:48 +0000 (17:23 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Wed, 2 Dec 2015 02:20:21 +0000 (18:20 -0800)
Summary: facepaw

Reviewed By: djwatson

Differential Revision: D2709030

fb-gh-sync-id: 20fe50bc70e97c4fedeae8fd271a4de70fa0e805

folly/experimental/TLRefCount.h

index c2b220915ed144077ccf66dd1da43fc463970e06..6d20b5ef45ce34a285a6b6ccca0c6542847a5c1c 100644 (file)
@@ -159,7 +159,7 @@ class TLRefCount {
 
     std::mutex collectMutex_;
     Int collectCount_{0};
-    bool collectDone_;
+    bool collectDone_{false};
   };
 
   std::atomic<State> state_{State::LOCAL};