Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
merge back the master trunk into the smpi branch
[simgrid.git] / src / include / mc / mc.h
1 /* Copyright (c) 2008 Martin Quinson, Cristian Rosa.
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_MC_H
8 #define _MC_MC_H
9
10 #include "xbt/misc.h"
11 #include "xbt/fifo.h"
12 #include "xbt/dict.h"
13 #include "xbt/function_types.h"
14 #include "mc/datatypes.h"
15 #include "simix/datatypes.h"
16 #include "gras_config.h" /* Definition of HAVE_MC */
17
18 #ifdef HAVE_MC
19 extern int _surf_do_model_check;
20 #define MC_IS_ENABLED _surf_do_model_check
21 #else
22 #define MC_IS_ENABLED 0
23 #endif
24
25 SG_BEGIN_DECL()
26
27 /********************************* Global *************************************/
28 XBT_PUBLIC(void) MC_init(void);
29 XBT_PUBLIC(void) MC_exit(void);
30 XBT_PUBLIC(void) MC_assert(int);
31 XBT_PUBLIC(void) MC_modelcheck(void);
32 XBT_PUBLIC(int) MC_random(int, int);
33 XBT_PUBLIC(void) MC_process_clock_add(smx_process_t, double);
34 XBT_PUBLIC(double) MC_process_clock_get(smx_process_t);
35
36 /********************************* Memory *************************************/
37 XBT_PUBLIC(void) MC_memory_init(void);  /* Initialize the memory subsystem */
38 XBT_PUBLIC(void) MC_memory_exit(void);
39
40 SG_END_DECL()
41
42 #endif                          /* _MC_MC_H */