Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simdata cleanup from smx_action_t. Now all SIMIX's data structures [Cristian]
[simgrid.git] / src / gras / Virtu / rl_emul.c
1 /* $Id$ */
2
3 /* rl_emul - Emulation support (real life)                                  */
4
5 /* Copyright (c) 2003-5 Arnaud Legrand, Martin Quinson. All rights reserved.*/
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #include "gras/emul.h"
11 #include "gras/Virtu/virtu_rl.h"
12 #include "gras_modinter.h"
13
14 XBT_LOG_NEW_SUBCATEGORY(gras_virtu_emul, gras_virtu, "Emulation support");
15
16 /*** Timing macros: nothing to do in RL. Actually do the job and shutup ***/
17
18 void gras_emul_init(void)
19 {
20 }
21
22 void gras_emul_exit(void)
23 {
24 }
25
26 int gras_bench_always_begin(const char *location, int line)
27 {
28   return 0;
29 }
30
31 int gras_bench_always_end(void)
32 {
33   return 0;
34 }
35
36 int gras_bench_once_begin(const char *location, int line)
37 {
38   return 1;
39 }
40
41 int gras_bench_once_end(void)
42 {
43   return 0;
44 }
45
46 /*** Conditional execution support ***/
47
48 int gras_if_RL(void)
49 {
50   return 1;
51 }
52
53 int gras_if_SG(void)
54 {
55   return 0;
56 }