aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/Platform.cpp
diff options
context:
space:
mode:
authorKimmy Andersson <cyaspik@gmail.com>2021-01-09 22:18:57 +0100
committerGitHub <noreply@github.com>2021-01-09 22:18:57 +0100
commitbf97387f26813415d0a4f56d816eeb8e50711b17 (patch)
treef26ddb5447d598a04db10ff25861d1fda8ccdd9a /src/frontend/qt_sdl/Platform.cpp
parent6b306e18a563b0118012a0e601f7be1446bf4e83 (diff)
Improved SRAM performance (#925)
* Offload NDS SRAM writing to separate thread, debounce writes to two seconds after last flush or DeInit. * Fixed printf messages. * Fixes after CR. * Fixed potential portability issue with time_t
Diffstat (limited to 'src/frontend/qt_sdl/Platform.cpp')
-rw-r--r--src/frontend/qt_sdl/Platform.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp
index d3480e4..7c4b553 100644
--- a/src/frontend/qt_sdl/Platform.cpp
+++ b/src/frontend/qt_sdl/Platform.cpp
@@ -207,7 +207,6 @@ void Thread_Wait(Thread* thread)
((QThread*) thread)->wait();
}
-
Semaphore* Semaphore_Create()
{
return (Semaphore*)new QSemaphore();
@@ -443,5 +442,9 @@ int LAN_RecvPacket(u8* data)
return LAN_Socket::RecvPacket(data);
}
+void Sleep(u64 usecs)
+{
+ QThread::usleep(usecs);
+}
}