mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
uninit_timers() needs to wait for the timer thread to exit before deleting the timer mutex.
This commit is contained in:
parent
2acdce3560
commit
01808ce939
@ -681,13 +681,14 @@ void
|
||||
uninit_timers(void)
|
||||
{
|
||||
delete_sem(sTimerWaitSem);
|
||||
mutex_lock(&sTimerLock);
|
||||
|
||||
mutex_destroy(&sTimerLock);
|
||||
|
||||
status_t status;
|
||||
wait_for_thread(sTimerThread, &status);
|
||||
|
||||
mutex_lock(&sTimerLock);
|
||||
|
||||
mutex_destroy(&sTimerLock);
|
||||
|
||||
remove_debugger_command("net_timer", dump_timer);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user