From 482cdd72891c947f312708390d1624cbf3aebc8b Mon Sep 17 00:00:00 2001 From: Fabian Knorr Date: Wed, 27 Nov 2024 15:54:33 +0100 Subject: [PATCH] Remove branch: ~queue cannot shutdown the runtime --- include/distr_queue.h | 2 +- include/queue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/distr_queue.h b/include/distr_queue.h index ac38dfa4..1eaa644a 100644 --- a/include/distr_queue.h +++ b/include/distr_queue.h @@ -150,7 +150,7 @@ class [[deprecated("Use celerity::queue instead")]] distr_queue { // ~distr_queue() guarantees that all operations on that particular queue have finished executing, which we simply guarantee by waiting on all // operations on all live queues. - if(detail::runtime::has_instance()) { detail::runtime::get_instance().sync(detail::epoch_action::none); } + detail::runtime::get_instance().sync(detail::epoch_action::none); } }; diff --git a/include/queue.h b/include/queue.h index d58e2f4b..989fedb9 100644 --- a/include/queue.h +++ b/include/queue.h @@ -112,7 +112,7 @@ class queue { // ~queue() guarantees that all operations on that particular queue have finished executing, which we simply guarantee by waiting on all operations // on all live queues. - if(detail::runtime::has_instance()) { detail::runtime::get_instance().sync(detail::epoch_action::none); } + detail::runtime::get_instance().sync(detail::epoch_action::none); } };