From 8fbcfda7270ef266f29f36b8eadcffaec2123612 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Wed, 31 Jan 2024 17:02:20 -0500 Subject: More locking! --- include/framework/DynamicExtension.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/framework') diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h index abe3839..cc226d2 100644 --- a/include/framework/DynamicExtension.h +++ b/include/framework/DynamicExtension.h @@ -301,8 +301,10 @@ private: _Epoch *get_active_epoch_protected() { m_epoch_retire_lk.lock_shared(); + m_struct_lock.lock(); auto cur_epoch = m_current_epoch.load(); m_epochs[cur_epoch]->start_job(); + m_struct_lock.unlock(); m_epoch_retire_lk.unlock_shared(); return m_epochs[cur_epoch]; -- cgit v1.2.3