Update StarThread_unix.cpp

my brain is kind of fried at the moment
This commit is contained in:
Kae 2024-08-14 13:45:17 +10:00
parent 86a1de4fbd
commit 295ed51126

View File

@ -136,7 +136,7 @@ struct MutexImpl {
ts.tv_sec += 60;
if (pthread_mutex_timedlock(&mutex, &ts) != 0) {
Logger::warn("Mutex lock is taking too long, printing stack");
printStack();
printStack("Mutex::lock");
pthread_mutex_lock(&mutex);
}
}
@ -211,7 +211,7 @@ struct RecursiveMutexImpl {
ts.tv_sec += 60;
if (pthread_mutex_timedlock(&mutex, &ts) != 0) {
Logger::warn("RecursiveMutex lock is taking too long, printing stack");
printStack();
printStack("RecursiveMutex::lock");
pthread_mutex_lock(&mutex);
}
}