Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix comment.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 21 Nov 2017 20:45:57 +0000 (21:45 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 22 Nov 2017 09:28:59 +0000 (10:28 +0100)
src/smpi/internals/smpi_shared.cpp

index ce65e1b..9bf2045 100644 (file)
@@ -149,7 +149,7 @@ static void *smpi_shared_malloc_local(size_t size, const char *file, int line)
   auto res = allocs.insert(std::make_pair(loc, shared_data_t()));
   auto data = res.first;
   if (res.second) {
-    // The insertion did not take place.
+    // The new element was inserted.
     // Generate a shared memory name from the address of the shared_data:
     char shmname[32]; // cannot be longer than PSHMNAMLEN = 31 on Mac OS X (shm_open raises ENAMETOOLONG otherwise)
     snprintf(shmname, 31, "/shmalloc%p", &*data);