if (code) {
context->begin = xbt_os_sem_init(0);
context->end = xbt_os_sem_init(0);
- if(smx_context_stack_size_was_set)xbt_os_thread_setstacksize(smx_context_stack_size);
+ if (smx_context_stack_size_was_set)
+ xbt_os_thread_setstacksize(smx_context_stack_size);
/* create and start the process */
/* NOTE: The first argument to xbt_os_thread_create used to be the process *
return t;
}
-void xbt_os_thread_setstacksize(int stack_size)
+void xbt_os_thread_setstacksize(int size)
{
- stack_size=stack_size;
+ stack_size = size;
}
const char *xbt_os_thread_name(xbt_os_thread_t t)