X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/53b6a451a45d9d6465c9dbad3f29d3f1a55ca238..5880a1bbbf150def1664cfefd6ec7f36f56edfaa:/src/simix/smx_smurf.c diff --git a/src/simix/smx_smurf.c b/src/simix/smx_smurf.c index 9ef5352394..515446b43e 100644 --- a/src/simix/smx_smurf.c +++ b/src/simix/smx_smurf.c @@ -1,3 +1,9 @@ +/* Copyright (c) 2010-2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include "smx_private.h" #include "xbt/fifo.h" #include "xbt/xbt_os_thread.h" @@ -50,14 +56,14 @@ void SIMIX_simcall_answer(smx_simcall_t simcall) void SIMIX_simcall_pre(smx_simcall_t simcall, int value) { XBT_DEBUG("Handling simcall %p: %s", simcall, SIMIX_simcall_name(simcall->call)); - simcall->mc_value = value; + SIMCALL_SET_MC_VALUE(simcall, value); if (simcall->issuer->context->iwannadie && simcall->call != SIMCALL_PROCESS_CLEANUP) return; switch (simcall->call) { #include "simcalls_generated_case.c" - case NUM_SIMCALLS:; + case NUM_SIMCALLS: break; - case SIMCALL_NONE:; + case SIMCALL_NONE: THROWF(arg_error,0,"Asked to do the noop syscall on %s@%s", SIMIX_process_get_name(simcall->issuer), SIMIX_host_get_name(SIMIX_process_get_host(simcall->issuer))