Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Comment is not relevant anymore.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 23 Feb 2023 15:48:28 +0000 (16:48 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 23 Feb 2023 15:52:56 +0000 (16:52 +0100)
[ci-skip]

src/xbt/dict.cpp

index e733dad..f1e73d3 100644 (file)
@@ -35,7 +35,7 @@ static void xbt_dict_preinit()
 {
   static std::mutex init_mutex;
   const std::scoped_lock lock(init_mutex);
 {
   static std::mutex init_mutex;
   const std::scoped_lock lock(init_mutex);
-  if (dict_elm_mallocator == nullptr) { // Just in case someone initialized it in between
+  if (dict_elm_mallocator == nullptr) {
     dict_elm_mallocator =
         xbt_mallocator_new(256, dict_elm_mallocator_new_f, dict_elm_mallocator_free_f, dict_elm_mallocator_reset_f);
     atexit(xbt_dict_postexit);
     dict_elm_mallocator =
         xbt_mallocator_new(256, dict_elm_mallocator_new_f, dict_elm_mallocator_free_f, dict_elm_mallocator_reset_f);
     atexit(xbt_dict_postexit);