From a2741afc9a204758ec047cb25c6a85c92b3298a6 Mon Sep 17 00:00:00 2001 From: Kurt Wilson Date: Mon, 24 Mar 2025 23:47:51 -0400 Subject: [PATCH] set prio_memory_strategy!!! --- src/priority_executor/src/usage_example.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/priority_executor/src/usage_example.cpp b/src/priority_executor/src/usage_example.cpp index 2650fd6..475c53f 100755 --- a/src/priority_executor/src/usage_example.cpp +++ b/src/priority_executor/src/usage_example.cpp @@ -65,6 +65,9 @@ int main(int argc, char **argv) options.memory_strategy = strategy; auto executor = new timed_executor::TimedExecutor(options); + // must be set to post_execute can set new deadlines + executor->prio_memory_strategy_ = strategy; + // the new funcitons in PriorityMemoryStrategy accept the handle of the // timer/subscription as the first argument