A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new simcall interface definitions.
[simgrid.git]
/
src
/
simix
/
smx_smurf.c
diff --git
a/src/simix/smx_smurf.c
b/src/simix/smx_smurf.c
index
70c1393
..
8118479
100644
(file)
--- a/
src/simix/smx_smurf.c
+++ b/
src/simix/smx_smurf.c
@@
-25,6
+25,7
@@
void SIMIX_simcall_push(smx_process_t self)
SIMIX_simcall_name(self->simcall.call), (int)self->simcall.call);
SIMIX_process_yield(self);
} else {
SIMIX_simcall_name(self->simcall.call), (int)self->simcall.call);
SIMIX_process_yield(self);
} else {
+ XBT_DEBUG("I'm the maestro, execute the simcall directly");
SIMIX_simcall_pre(&self->simcall, 0);
}
}
SIMIX_simcall_pre(&self->simcall, 0);
}
}
@@
-560,7
+561,7
@@
void SIMIX_simcall_pre(smx_simcall_t simcall, int value)
#ifdef HAVE_MC
case SIMCALL_MC_SNAPSHOT:
#ifdef HAVE_MC
case SIMCALL_MC_SNAPSHOT:
- simcall->mc_snapshot.s = MC_take_snapshot
_liveness
();
+ simcall->mc_snapshot.s = MC_take_snapshot();
SIMIX_simcall_answer(simcall);
break;
SIMIX_simcall_answer(simcall);
break;
@@
-620,3
+621,14
@@
void SIMIX_simcall_post(smx_action_t action)
break;
}
}
break;
}
}
+
+/* New Simcal interface */
+
+/* FIXME: add types for every simcall */
+const char *simcall_types[NUM_SIMCALLS] = {"%d", "%d%f", "%l"};
+
+void SIMIX_simcall_typecheck(const char *fmt, ...)
+{
+ return;
+}
+