@@ -208,14 +208,12 @@ class RPCEngine
208208
209209 /* *
210210 * Function to request the execution of a remote function in a remote HiCR instance
211- * \param[in] RPCName The name of the RPC to run
212- * \param[in] instance Instance on which to run the RPC
211+ * \param[in] targetInstanceId Instance ID of where the rpc is to be executed
212+ * \param[in] RPCName RPC Name
213213 * \param[in] argument An optional numerical argument to provide to the RPC
214214 */
215- virtual void requestRPC (HiCR::Instance &instance , const std::string &RPCName, const HiCR::frontend::RPCEngine::RPCArgument_t argument = 0 )
215+ virtual void requestRPC (HiCR::Instance::instanceId_t targetInstanceId , const std::string &RPCName, const HiCR::frontend::RPCEngine::RPCArgument_t argument = 0 )
216216 {
217- const auto targetInstanceId = instance.getId ();
218-
219217 // Creating message payload
220218 RPCPayload_t RPCPayload;
221219 RPCPayload.index = getRPCTargetIndexFromString (RPCName);
@@ -254,10 +252,9 @@ class RPCEngine
254252
255253 /* *
256254 * Function to get a return value from a remote instance that ran an RPC
257- * \param[in] instance Instance from which to read the return value. An RPC request should be sent to that instance before calling this function.
258255 * \return A pointer to a newly allocated local memory slot containing the return value
259256 */
260- __INLINE__ std::shared_ptr<HiCR::LocalMemorySlot> getReturnValue (HiCR::Instance &instance ) const
257+ __INLINE__ std::shared_ptr<HiCR::LocalMemorySlot> getReturnValue () const
261258 {
262259 // Calling the backend-specific implementation of the listen function
263260 while (_returnValueConsumerChannel->isEmpty ());
0 commit comments