mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Make global instance init thread-safe.
Use local statics except for Visual C++ < 2015.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
using namespace nt;
|
||||
|
||||
std::unique_ptr<Storage> Storage::m_instance;
|
||||
ATOMIC_STATIC_INIT(Storage)
|
||||
|
||||
Storage::Storage() {
|
||||
m_updates_enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user