[cscore,hal] Remove VS 2019 16.4.0 workaround (#7201)

This commit is contained in:
Gold856
2024-10-12 01:18:12 -04:00
committed by GitHub
parent f23bece791
commit 12885015ed
4 changed files with 0 additions and 16 deletions

View File

@@ -44,11 +44,7 @@ class SimPeriodicCallbackRegistry : public impl::SimCallbackRegistryBase {
}
void operator()() const {
#ifdef _MSC_VER // work around VS2019 16.4.0 bug
std::scoped_lock<wpi::recursive_spinlock> lock(m_mutex);
#else
std::scoped_lock lock(m_mutex);
#endif
if (m_callbacks) {
for (auto&& cb : *m_callbacks) {
reinterpret_cast<HALSIM_SimPeriodicCallback>(cb.callback)(cb.param);