smx_activity_t waiting_synchro = nullptr; /* the current blocking synchro if any */
std::list<smx_activity_t> comms; /* the current non-blocking communication synchros */
- s_smx_simcall_t simcall;
- void* userdata = nullptr; /* kept for compatibility, it should be replaced with moddata */
+ s_smx_simcall simcall;
std::vector<s_smx_process_exit_fun_t> on_exit; /* list of functions executed when the process dies */
std::function<void()> code;
smx_timer_t kill_timer = nullptr;
- /* Refcounting */
private:
+ void* userdata = nullptr; /* kept for compatibility, it should be replaced with moddata */
+ /* Refcounting */
std::atomic_int_fast32_t refcount_{0};
public:
typedef simgrid::kernel::actor::ActorImpl* smx_actor_t;
-extern "C" {
-
XBT_PRIVATE smx_actor_t SIMIX_process_create(const char* name, std::function<void()> code, void* data, sg_host_t host,
std::map<std::string, std::string>* properties,
smx_actor_t parent_process);
XBT_PRIVATE void SIMIX_process_auto_restart_set(smx_actor_t process, int auto_restart);
extern void (*SMPI_switch_data_segment)(simgrid::s4u::ActorPtr actor);
-}
XBT_PRIVATE void SIMIX_process_sleep_destroy(smx_activity_t synchro);
XBT_PRIVATE smx_activity_t SIMIX_process_join(smx_actor_t issuer, smx_actor_t process, double timeout);