mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpiutil] Synchronization: fix shutdown use-after-free (#8213)
Also in ntcore, join the notifier thread on shutdown. This prevents tsan from reporting it as a leaked thread.
This commit is contained in:
@@ -13,6 +13,7 @@ using namespace nt;
|
||||
std::atomic<int> InstanceImpl::s_default{-1};
|
||||
std::atomic<InstanceImpl*> InstanceImpl::s_instances[kNumInstances];
|
||||
wpi::mutex InstanceImpl::s_mutex;
|
||||
InstanceImpl::Cleanup InstanceImpl::s_cleanup;
|
||||
|
||||
using namespace std::placeholders;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user