- xbt_assert(p_smx_process,"Cannot create the actor");
-// TRACE_msg_process_create(procname, simcall_process_get_PID(p_smx_process), host->getInferior());
-// simcall_process_on_exit(p_smx_process,(int_f_pvoid_pvoid_t)TRACE_msg_process_kill,p_smx_process);
-}
-
-int s4u::Actor::main(int argc, char **argv) {
- fprintf(stderr,"Error: You should override the method main(int, char**) in Actor class %s\n",getName());
- return 0;
-}
-s4u::Actor *s4u::Actor::current() {
- smx_process_t smx_proc = SIMIX_process_self();
- simgrid::s4u::Actor* res = (simgrid::s4u::Actor*) SIMIX_process_self_get_data(smx_proc);
- if (res == NULL) // The smx_process was not created by S4U (but by deployment?). Embed it in a S4U object
- res = new Actor(smx_proc);
- return res;
-}
-s4u::Actor *s4u::Actor::byPid(int pid) {
- return (simgrid::s4u::Actor*) SIMIX_process_self_get_data(SIMIX_process_from_PID(pid));
+void s4u::Actor::join() {
+ simcall_process_join(pimpl_, -1);