From 4b13aa18e70884daca28c6bdc91666dfdac9ef5d Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 13 Feb 2024 19:43:45 +0100 Subject: [PATCH] Added pthread entrypoint for epoch manager. --- src/mx/memory/reclamation/epoch_manager.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mx/memory/reclamation/epoch_manager.h b/src/mx/memory/reclamation/epoch_manager.h index 849d31f..b6c36fd 100644 --- a/src/mx/memory/reclamation/epoch_manager.h +++ b/src/mx/memory/reclamation/epoch_manager.h @@ -113,6 +113,11 @@ public: */ void enter_epoch_periodically(); + static void *enter(void *args) { EpochManager *mgr = static_cast(args); + mgr->enter_epoch_periodically(); + return nullptr; + } + /** * Reclaims all garbage, mainly right before shut down tasking. */