From 9bcf58f81ffeccd8b624389c57492a9c1fd56511 Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Mon, 12 Aug 2024 14:41:48 +0100 Subject: [PATCH] added the possibility to get the ID of a remote_procedure --- include/thallium/remote_procedure.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/thallium/remote_procedure.hpp b/include/thallium/remote_procedure.hpp index 3b81e85..f867d0f 100644 --- a/include/thallium/remote_procedure.hpp +++ b/include/thallium/remote_procedure.hpp @@ -109,6 +109,13 @@ class remote_procedure { */ void deregister(); + /** + * @brief Return the ID of the RPC. + */ + hg_id_t id() const { + return m_id; + } + [[deprecated("use disable_response() instead")]] inline remote_procedure& ignore_response() { return disable_response();