X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a5030ee44e0b07c5ce1775ea36cead3c875d89a8..4a201b7ceece70d2bc461ac48c8b746a36d07243:/include/gras/emul.h diff --git a/include/gras/emul.h b/include/gras/emul.h index 843478c870..e2c3bcc0b3 100644 --- a/include/gras/emul.h +++ b/include/gras/emul.h @@ -1,8 +1,6 @@ -/* $Id$ */ - /* gras/emul.h - public interface to emulation support */ /* (specific parts for SG or RL) */ - + /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,15 +9,9 @@ #ifndef GRAS_COND_H #define GRAS_COND_H -#include "xbt/misc.h" /* SG_BEGIN_DECL */ +#include "xbt/misc.h" /* SG_BEGIN_DECL */ SG_BEGIN_DECL() -XBT_PUBLIC(void) gras_global_init(int *argc, char **argv); -XBT_PUBLIC(void) gras_create_environment(const char *file); -XBT_PUBLIC(void) gras_function_register(const char *name, void* code); -XBT_PUBLIC(void) gras_launch_application(const char *file); -XBT_PUBLIC(void) gras_clean(void); -XBT_PUBLIC(void) gras_main(void); /** @addtogroup GRAS_emul * @brief Code execution "emulation" and "virtualization". * @@ -49,7 +41,6 @@ XBT_PUBLIC(void) gras_main(void); * * @{ */ - /** \brief Returns true only if the program runs on real life */ XBT_PUBLIC(int) gras_if_RL(void); @@ -166,13 +157,13 @@ XBT_PUBLIC(int) gras_bench_once_end(void); /** \brief Start benchmarking this code block if it has never been benchmarked, ignore it if it was \hideinitializer */ -#define GRAS_BENCH_ONCE_RUN_ONCE_BEGIN() if (gras_bench_once_begin(__FILE__, __LINE__)) { +#define GRAS_BENCH_ONCE_RUN_ONCE_BEGIN() if (gras_bench_once_begin(__FILE__, __LINE__)) { /** \brief Stop benchmarking this part of the code \hideinitializer */ #define GRAS_BENCH_ONCE_RUN_ONCE_END() } gras_bench_once_end() + +XBT_PUBLIC(void) gras_cpu_burn(double flops); /** @} */ SG_END_DECL() - #endif /* GRAS_COND_H */ -