make platform objects typesafer and add mutex

This commit is contained in:
RSDuck
2020-11-03 19:40:14 +01:00
parent 052079afeb
commit 2720df9650
3 changed files with 56 additions and 22 deletions

View File

@ -61,12 +61,12 @@ bool Enabled;
// threading
bool Threaded;
void* RenderThread;
Platform::Thread* RenderThread;
bool RenderThreadRunning;
bool RenderThreadRendering;
void* Sema_RenderStart;
void* Sema_RenderDone;
void* Sema_ScanlineCount;
Platform::Semaphore* Sema_RenderStart;
Platform::Semaphore* Sema_RenderDone;
Platform::Semaphore* Sema_ScanlineCount;
void RenderThreadFunc();