diff options
Diffstat (limited to 'include/framework/DynamicExtension.h')
| -rw-r--r-- | include/framework/DynamicExtension.h | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |