Skip to content

Commit

Permalink
Remove branch: ~queue cannot shutdown the runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Dec 9, 2024
1 parent 3fe30fd commit 1ae5388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/distr_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down
2 changes: 1 addition & 1 deletion include/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit 1ae5388

Please sign in to comment.