From: Andrii Grynenko Date: Wed, 2 Dec 2015 01:23:48 +0000 (-0800) Subject: Properly init collectDone_ X-Git-Tag: deprecate-dynamic-initializer~216 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=632fb9b591ebc15229f9d293a704c42d45d96535;p=folly.git Properly init collectDone_ Summary: facepaw Reviewed By: djwatson Differential Revision: D2709030 fb-gh-sync-id: 20fe50bc70e97c4fedeae8fd271a4de70fa0e805 --- diff --git a/folly/experimental/TLRefCount.h b/folly/experimental/TLRefCount.h index c2b22091..6d20b5ef 100644 --- a/folly/experimental/TLRefCount.h +++ b/folly/experimental/TLRefCount.h @@ -159,7 +159,7 @@ class TLRefCount { std::mutex collectMutex_; Int collectCount_{0}; - bool collectDone_; + bool collectDone_{false}; }; std::atomic state_{State::LOCAL};