mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
Ports: Patch out SDL timer lock from ScummVM
This change is backported from upstream master and prevents unnecessary spam to our debug console about NULL mutexes.
This commit is contained in:
parent
3ce1118af1
commit
1d627f1b2c
Notes:
sideshowbarker
2024-07-17 21:17:17 +09:00
Author: https://github.com/gmta
Commit: 1d627f1b2c
Pull-request: https://github.com/SerenityOS/serenity/pull/11774
Reviewed-by: https://github.com/linusg
1 changed files with 23 additions and 0 deletions
23
Ports/scummvm/patches/remove-sdl-timer-lock.patch
Normal file
23
Ports/scummvm/patches/remove-sdl-timer-lock.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--- scummvm-2.5.1/backends/timer/sdl/sdl-timer.cpp 2021-12-24 22:19:28.000000000 +0000
|
||||||
|
+++ scummvm-2.5.1-patched/backends/timer/sdl/sdl-timer.cpp 2022-01-09 22:17:13.919057360 +0000
|
||||||
|
@@ -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() {
|
||||||
|
- Common::StackLock lock(timerMutex);
|
||||||
|
-
|
||||||
|
// Removes the timer callback
|
||||||
|
SDL_RemoveTimer(_timerID);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue