Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Detect/fix conflicting visibility and fix visibility wrt lua/java bindings
[simgrid.git] / src / mc / mc_base.h
1 /* Copyright (c) 2008-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef SIMGRID_MC_BASE_H
8 #define SIMGRID_MC_BASE_H
9
10 #include <xbt/misc.h>
11 #include <simgrid/simix.h>
12 #include "simgrid_config.h"
13 #include "internal_config.h"
14 #include "../simix/smx_private.h"
15
16 SG_BEGIN_DECL()
17
18 /** Check if the given simcall can be resolved
19  *
20  *  \return `TRUE` or `FALSE`
21  */
22 XBT_PRIVATE int MC_request_is_enabled(smx_simcall_t req);
23
24 /** Check if the given simcall is visible
25  *
26  *  \return `TRUE` or `FALSE`
27  */
28 XBT_PRIVATE int MC_request_is_visible(smx_simcall_t req);
29
30 /** Execute everything which is invisible
31  *
32  *  Execute all the processes that are ready to run and all invisible simcalls
33  *  iteratively until there doesn't remain any. At this point, the function
34  *  returns to the caller which can handle the visible (and ready) simcalls.
35  */
36 XBT_PRIVATE void MC_wait_for_requests(void);
37
38 XBT_PRIVATE extern double *mc_time;
39
40 SG_END_DECL()
41
42 #endif