Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
7027a930d6092c0b3b7aed9e5b705314d404ac1e
[simgrid.git] / src / mc / mc_base.h
1 /* Copyright (c) 2008-2014. 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 MC_BASE_H
8 #define MC_BASE_H
9
10 #include <simgrid/simix.h>
11 #include "simgrid_config.h"
12 #include "internal_config.h"
13 #include "../simix/smx_private.h"
14
15 SG_BEGIN_DECL()
16
17 // This variable is set by simgrid-mc in order to enable MC support in the
18 // children MC processes:
19 #define MC_ENV_VARIABLE "SIMGRIC_MC"
20
21 int MC_request_is_enabled(smx_simcall_t req);
22 int MC_request_is_visible(smx_simcall_t req);
23 void MC_wait_for_requests(void);
24
25 extern double *mc_time;
26
27 SG_END_DECL()
28
29 #endif