Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / src / xbt / xbt_virtu.c
1 /* virtu - virtualization layer for XBT to choose between GRAS and MSG implementation */
2
3 /* Copyright (c) 2007-2010, 2012-2014. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #include "xbt/misc.h"
10 #include "xbt/virtu.h"
11 #include "xbt/function_types.h"
12 #include "simgrid/simix.h"
13
14 static int xbt_fake_pid(void)
15 {
16   return 0;
17 }
18
19 int_f_void_t xbt_getpid = xbt_fake_pid;
20
21 const char *xbt_procname(void)
22 {
23   return SIMIX_process_self_get_name();
24 }