otherwise it is the context for maestro */
if (code) {
- int res = getcontext(&(context->uc));
- xbt_assert(res == 0,
- "Error in context saving: %d (%s)", errno,
- strerror(errno));
+ getcontext(&(context->uc));
context->uc.uc_link = NULL;
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;