$ env ASAN_OPTIONS=verify_asan_link_order=0:$ASAN_OPTIONS LD_PRELOAD=${libdir:=.}/libsthread.so ./pthread-mutex-simple
> [0.000000] [sthread/INFO] Starting the simulation.
-> The thread 0 is terminating.
> All threads are started.
+> The thread 0 is terminating.
> The thread 1 is terminating.
> User's main is terminating.
> [0.000000] [sthread/INFO] All threads exited. Terminating the simulation.
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
#endif
std::string name = simgrid::xbt::string_printf("%d:%d", rank, TID);
- sg4::ActorPtr actor = sg4::Actor::init(name.c_str(), lilibeth);
- actor->start(thread_create_wrapper, start_routine, arg);
+ sg4::ActorPtr actor = sg4::Actor::create(name, lilibeth, thread_create_wrapper, start_routine, arg);
intrusive_ptr_add_ref(actor.get());
*thread = reinterpret_cast<unsigned long>(actor.get());