From 94a955e63fa179a4e56bdf87b7a8a711c8eaded3 Mon Sep 17 00:00:00 2001 From: John Biddiscombe Date: Tue, 19 Sep 2023 07:25:00 +0200 Subject: [PATCH] Fix a missing global activity count --- libs/pika/async_mpi/src/mpi_polling.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/pika/async_mpi/src/mpi_polling.cpp b/libs/pika/async_mpi/src/mpi_polling.cpp index 103faffd4..63b56fbe6 100644 --- a/libs/pika/async_mpi/src/mpi_polling.cpp +++ b/libs/pika/async_mpi/src/mpi_polling.cpp @@ -431,6 +431,8 @@ namespace pika::mpi::experimental { // Invoke callback (PIKA_MOVE doesn't compile here) PIKA_INVOKE(std::move(ready_callback_.cb_), ready_callback_.err_); + + pika::threads::detail::decrement_global_activity_count(); } // if we think there are no outstanding requests, then exit quickly