Преглед на файлове

enable the thread destructor

Ioannis Koutras преди 11 години
родител
ревизия
87c9a8d69f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/tls_allocator.c

+ 1 - 1
src/tls_allocator.c

@@ -24,6 +24,6 @@ void get_tls_allocator(void) {
         }
         pthread_key_create(&destruction_key,
                 (void (*)(void *)) push_to_destructed_list);
-        pthread_setspecific(destruction_key, NULL);
+        pthread_setspecific(destruction_key, (void *) 1);
     }
 }