(*factory)->stop = smx_ctx_sysv_stop_parallel;
(*factory)->suspend = smx_ctx_sysv_suspend_parallel;
(*factory)->runall = smx_ctx_sysv_runall_parallel;
- (*factory)->self = smx_ctx_sysv_self_parallel;
#else
THROWF(arg_error, 0, "No thread support for parallel context execution");
#endif
static void smx_ctx_sysv_runall_serial(void)
{
- if (xbt_dynar_length(simix_global->process_to_run) > 0) {
+ if (!xbt_dynar_is_empty(simix_global->process_to_run)) {
smx_process_t first_process =
xbt_dynar_get_as(simix_global->process_to_run, 0, smx_process_t);
smx_ctx_sysv_process_index = 1;
simix_global->process_to_run);
#endif
}
-
-smx_context_t smx_ctx_sysv_self_parallel(void)
-{
- /*smx_context_t self_context = (smx_context_t) xbt_os_thread_get_extra_data();
- return self_context ? self_context : (smx_context_t) maestro_context;*/
- return SIMIX_context_get_current();
-}