A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use function-like macros instead of inline functions for MC_is_active().
[simgrid.git]
/
include
/
smpi
/
smpi_cocci.h
diff --git
a/include/smpi/smpi_cocci.h
b/include/smpi/smpi_cocci.h
index
bcd150d
..
ace208f
100644
(file)
--- a/
include/smpi/smpi_cocci.h
+++ b/
include/smpi/smpi_cocci.h
@@
-43,9
+43,15
@@
void __attribute__((weak,destructor)) __postfini_##name(void) { \
#define SMPI_VARGET_GLOBAL(name) name[smpi_process_index()]
/* The following handle local static variables */
#define SMPI_VARGET_GLOBAL(name) name[smpi_process_index()]
/* The following handle local static variables */
-
+/** @brief Make sure that the passed pointer is freed on process exit.
+ *
+ * This function is rather internal, mainly used for the
+ * privatization of global variables through coccinelle.
+ */
XBT_PUBLIC(void) smpi_register_static(void* arg);
XBT_PUBLIC(void) smpi_register_static(void* arg);
+XBT_PUBLIC(void) smpi_free_static(void);
+
#define SMPI_VARINIT_STATIC(name,type) \
static type *name = NULL; \
if(!name) { \
#define SMPI_VARINIT_STATIC(name,type) \
static type *name = NULL; \
if(!name) { \