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
This commit is contained in:
Kimmy Andersson
2021-01-09 22:18:57 +01:00
committed by GitHub
parent 6b306e18a5
commit bf97387f26
7 changed files with 195 additions and 11 deletions

View File

@ -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);
}
}