mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Make global instance init thread-safe.
Use local statics except for Visual C++ < 2015.
This commit is contained in:
@@ -14,7 +14,7 @@ using namespace nt;
|
||||
|
||||
#define DEBUG(str) puts(str)
|
||||
|
||||
std::unique_ptr<Dispatcher> Dispatcher::m_instance;
|
||||
ATOMIC_STATIC_INIT(Dispatcher)
|
||||
|
||||
Dispatcher::Dispatcher()
|
||||
: m_server(false),
|
||||
|
||||
Reference in New Issue
Block a user