- if (smx_context_stack_size_was_set)
- xbt_os_thread_setstacksize(smx_context_stack_size);
- if (smx_context_guard_size_was_set)
- xbt_os_thread_setguardsize(smx_context_guard_size);
-
- /* create and start the process */
- /* NOTE: The first argument to xbt_os_thread_create used to be the process *
- * name, but now the name is stored at SIMIX level, so we pass a null */
- this->thread_ = xbt_os_thread_create(nullptr, ThreadContext::wrapper, this, this);
- /* wait the starting of the newly created process */
- xbt_os_sem_acquire(this->end_);
+ /* create and start the actor */
+ this->thread_ = new std::thread(ThreadContext::wrapper, this);
+ /* wait the starting of the newly created actor */
+ this->end_.acquire();