1 /* virtu - virtualization layer for the logging to know about the actors */
3 /* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
11 #include <simgrid/actor.h>
21 /* Get the name of the UNIX process englobing the world */
22 XBT_PUBLIC_DATA std::string binary_name;
23 /** Contains all the parameters we got from the command line (including argv[0]) */
24 XBT_PUBLIC_DATA std::vector<std::string> cmdline;
27 } // namespace simgrid
32 XBT_ATTRIB_DEPRECATED_v337("Please use sg_actor_self_get_name()") static const char* xbt_procname(void)
34 return sg_actor_self_get_name() ?: "maestro";
37 XBT_ATTRIB_DEPRECATED_v337("Please use sg_actor_self_get_pid()") static int xbt_getpid(void)
39 return sg_actor_self_get_pid();
44 #endif /* XBT_VIRTU_H */