Probably dating from the time where SMPI was C and not C++.
#include "src/kernel/context/Context.hpp"
#include "src/simix/smx_private.h"
-void SIMIX_process_set_cleanup_function(
- smx_process_t process, void_pfn_smxprocess_t cleanup)
-{
- process->context->set_cleanup(cleanup);
-}
-
/**
* @brief creates a new context for a user level process
* @param code a main function
XBT_PRIVATE void SIMIX_post_create_environment(void);
-// FIXME, Dirty hack for SMPI+MSG
-XBT_PRIVATE void SIMIX_process_set_cleanup_function(smx_process_t process, void_pfn_smxprocess_t cleanup);
-
SG_END_DECL()
XBT_PRIVATE simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(const char *name);
if (argc != nullptr && argv != nullptr) {
smx_process_t proc = SIMIX_process_self();
- SIMIX_process_set_cleanup_function(proc, MSG_process_cleanup_from_SIMIX);
+ proc->context->set_cleanup(MSG_process_cleanup_from_SIMIX);
char* instance_id = (*argv)[1];
int rank = xbt_str_parse_int((*argv)[2], "Invalid rank: %s");
int index = smpi_process_index_of_smx_process(proc);