5 * Copyright 2006,2007 Martin Quinson, Malek Cherier
\r
6 * All right reserved.
\r
8 * This program is free software; you can redistribute
\r
9 * it and/or modify it under the terms of the license
\r
10 *(GNU LGPL) which comes with this package.
\r
14 /* Msg functions implementation.
\r
17 #include <MsgException.hpp>
\r
20 #include <msg/msg.h>
\r
23 // XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(SimGridX);
\r
30 void init(int argc, char** argv)
\r
32 MSG_global_init(&argc,argv);
\r
33 MSG_set_channel_number(10); // FIXME: this should not be fixed statically
\r
37 throw (MsgException)
\r
39 if(MSG_OK != MSG_clean())
\r
40 throw MsgException("MSG_clean() failed");
\r
43 void info(const char* s)
\r
46 printf("[SimGridX/info] %s\n", s);
\r
49 double getClock(void)
\r
51 return MSG_get_clock();
\r
56 } // namespace SimGrid