Index: src/OFThread.h ================================================================== --- src/OFThread.h +++ src/OFThread.h @@ -57,11 +57,11 @@ * \param destructor A destructor that is called when the thread is terminated * \return A new autoreleased Thread Local Storage key */ + (instancetype)TLSKeyWithDestructor: (void(*)(id))destructor; -+ (void)callAllDestructors; ++ (void)OF_callAllDestructors; /** * \brief Initializes an already allocated Thread Local Storage Key with the * specified destructor. * Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -85,11 +85,11 @@ [thread handleTermination]; thread->running = OF_THREAD_WAITING_FOR_JOIN; - [OFTLSKey callAllDestructors]; + [OFTLSKey OF_callAllDestructors]; #ifdef OF_OBJFW_RUNTIME /* * As the values returned by objc_autoreleasePoolPush() in the ObjFW * runtime are not actually pointers, but sequential numbers, 0 means * we pop everything. @@ -222,11 +222,11 @@ [thread handleTermination]; thread->running = OF_THREAD_WAITING_FOR_JOIN; } - [OFTLSKey callAllDestructors]; + [OFTLSKey OF_callAllDestructors]; #ifdef OF_OBJFW_RUNTIME /* * As the values returned by objc_autoreleasePoolPush() in the ObjFW * runtime are not actually pointers, but sequential numbers, 0 means * we pop everything. @@ -378,11 +378,11 @@ + (instancetype)TLSKeyWithDestructor: (void(*)(id))destructor { return [[[self alloc] initWithDestructor: destructor] autorelease]; } -+ (void)callAllDestructors ++ (void)OF_callAllDestructors { of_list_object_t *iter; @synchronized (TLSKeys) { for (iter = [TLSKeys firstListObject]; iter != NULL;