1 /* Copyright (c) 2008-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
10 #include <simgrid/simix.h>
11 #include "simgrid_config.h"
12 #include "internal_config.h"
13 #include "../simix/smx_private.h"
17 /** Environment variable name set by `simgrid-mc` to enable MC support in the
18 * children MC processes
20 #define MC_ENV_VARIABLE "SIMGRIC_MC"
22 /** Check if the given simcall can be resolved
24 * \return `TRUE` or `FALSE`
26 int MC_request_is_enabled(smx_simcall_t req);
28 /** Check if the given simcall is visible
30 * \return `TRUE` or `FALSE`
32 int MC_request_is_visible(smx_simcall_t req);
34 /** Execute everything which is invisible
36 * Execute all the processes that are ready to run and all invisible simcalls
37 * iteratively until there doesn't remain any. At this point, the function
38 * returns to the caller which can handle the visible (and ready) simcalls.
40 void MC_wait_for_requests(void);
42 extern double *mc_time;