pthread_spec: Make assert into a log

This commit is contained in:
TheTurtle 2024-10-28 01:16:08 +02:00 committed by GitHub
parent 8daecbc54d
commit 0f1be0122e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,9 @@ void _thread_cleanupspecific() {
}
delete[] curthread->specific;
curthread->specific = nullptr;
ASSERT(curthread->specific_data_count == 0);
if (curthread->specific_data_count > 0) {
LOG_WARNING(Lib_Kernel, "Thread has exited with leftover thread-specific data");
}
}
int PS4_SYSV_ABI posix_pthread_setspecific(PthreadKeyT key, const void* value) {