mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:27:35 +00:00
37 lines
934 B
Diff
37 lines
934 B
Diff
From ddb49b8e7be62501eeea15941b47b91902f697f8 Mon Sep 17 00:00:00 2001
|
|
From: Jelle Raaijmakers <jelle@gmta.nl>
|
|
Date: Sun, 9 Jan 2022 23:18:02 +0100
|
|
Subject: [PATCH 3/3] Remove SDL timer lock
|
|
|
|
---
|
|
backends/timer/sdl/sdl-timer.cpp | 6 ------
|
|
1 file changed, 6 deletions(-)
|
|
|
|
diff --git a/backends/timer/sdl/sdl-timer.cpp b/backends/timer/sdl/sdl-timer.cpp
|
|
index f9d79ac..ce1af0e 100644
|
|
--- a/backends/timer/sdl/sdl-timer.cpp
|
|
+++ b/backends/timer/sdl/sdl-timer.cpp
|
|
@@ -29,11 +29,7 @@
|
|
|
|
#include "common/textconsole.h"
|
|
|
|
-OSystem::MutexRef timerMutex;
|
|
-
|
|
static Uint32 timer_handler(Uint32 interval, void *param) {
|
|
- Common::StackLock lock(timerMutex);
|
|
-
|
|
((DefaultTimerManager *)param)->handler();
|
|
return interval;
|
|
}
|
|
@@ -49,8 +45,6 @@ SdlTimerManager::SdlTimerManager() {
|
|
}
|
|
|
|
SdlTimerManager::~SdlTimerManager() {
|
|
- Common::StackLock lock(timerMutex);
|
|
-
|
|
// Removes the timer callback
|
|
SDL_RemoveTimer(_timerID);
|
|
|
|
--
|
|
2.36.1
|
|
|