Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added a simple comment on macro SMPI_VARINIT_STATIC
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 15 Jun 2016 11:54:18 +0000 (13:54 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 17 Jun 2016 09:27:40 +0000 (11:27 +0200)
include/smpi/smpi.h

index a06de05..3f7245b 100644 (file)
@@ -897,6 +897,10 @@ static void __attribute__((destructor)) __postfini_##name(void) { \
 
 #define SMPI_VARGET_GLOBAL(name) name[smpi_process_index()]
 
+/** 
+ * This is used for the old privatization method, i.e., on old
+ * machines that do not yet support privatization via mmap
+ */
 #define SMPI_VARINIT_STATIC(name,type)                      \
 static type *name = NULL;                                   \
 if(!name) {                                                 \