소스 검색

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);
     }
 }