Commit e45b48c7 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook Github Bot

Initialize std::atomic<std::thread::id> SingletonHolder::creating_thread_

Summary: Initialize `std::atomic<std::thread::id> SingletonHolder::creating_thread_`.

Reviewed By: yfeldblum

Differential Revision: D9525334

fbshipit-source-id: 93831c40bed21d1f3356bd2181e78ba08b7b116f
parent b6c88ec4
......@@ -344,7 +344,7 @@ struct SingletonHolder : public SingletonHolderBase {
std::atomic<SingletonHolderState> state_{SingletonHolderState::NotRegistered};
// the thread creating the singleton (only valid while creating an object)
std::atomic<std::thread::id> creating_thread_;
std::atomic<std::thread::id> creating_thread_{};
// The singleton itself and related functions.
......
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