- 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 */
- this->thread_ = xbt_os_thread_create(ThreadContext::wrapper, this);
- /* wait the starting of the newly created process */
+ /* create and start the actor */
+ this->thread_ = new std::thread(ThreadContext::wrapper, this);
+ /* wait the starting of the newly created actor */