summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a973a7e)
In addition, the virtualization was not done in s4u, so the %i
formatter of the logs was broken. (fix #195).
/* virtu - virtualization layer for the logging to know about the actors */
/* virtu - virtualization layer for the logging to know about the actors */
-/* Copyright (c) 2007-2014. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-/* Get the PID of the current (simulated) process */
-XBT_PUBLIC_DATA(int_f_void_t) xbt_getpid;
+XBT_PUBLIC(int) xbt_getpid(void);
/* Get the name of the UNIX process englobing the world */
XBT_PUBLIC_DATA(char*) xbt_binary_name;
/* Get the name of the UNIX process englobing the world */
XBT_PUBLIC_DATA(char*) xbt_binary_name;
TRACE_global_init(argc, argv);
TRACE_global_init(argc, argv);
- xbt_getpid = &MSG_process_self_PID;
if (not msg_global) {
msg_global = new s_MSG_Global_t();
if (not msg_global) {
msg_global = new s_MSG_Global_t();
#include "xbt/misc.h"
#include "xbt/virtu.h"
#include "xbt/misc.h"
#include "xbt/virtu.h"
-static int xbt_fake_pid(void)
+ return MSG_process_self_PID();
-int_f_void_t xbt_getpid = &xbt_fake_pid;
-
const char *xbt_procname(void)
{
return MSG_process_self_name();
const char *xbt_procname(void)
{
return MSG_process_self_name();