Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / include / xbt / virtu.h
1 /* virtu - virtualization layer for the logging to know about the actors    */
2
3 /* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved.          */
4
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. */
7
8 #ifndef XBT_VIRTU_H
9 #define XBT_VIRTU_H
10
11 #include <simgrid/actor.h>
12 #include <xbt/base.h>
13
14 // Deprecation warning on include (remove entire file with XBT_ATTRIB_DEPRECATED_v338)
15 #warning xbt/virtu.h is deprecated and will be removed after v3.37.
16
17 SG_BEGIN_DECL
18
19 XBT_ATTRIB_DEPRECATED_v338("Please use sg_actor_self_get_name()") static const char* xbt_procname(void)
20 {
21   return sg_actor_self_get_name();
22 }
23
24 XBT_ATTRIB_DEPRECATED_v338("Please use sg_actor_self_get_pid()") static int xbt_getpid(void)
25 {
26   return sg_actor_self_get_pid();
27 };
28
29 SG_END_DECL
30
31 #endif /* XBT_VIRTU_H */