Thread: Adjust checks for whether current thread is the game thread

This commit is contained in:
Jonathan G Rennison
2021-06-20 10:00:36 +01:00
parent 4577b547ea
commit 87948d8029
6 changed files with 23 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
#include "../gfx_func.h"
#include "../blitter/factory.hpp"
#include "../window_func.h"
#include "../thread.h"
#include "null_v.h"
#include "../safeguards.h"
@@ -48,6 +49,7 @@ void VideoDriver_Null::MakeDirty(int left, int top, int width, int height) {}
void VideoDriver_Null::MainLoop()
{
SetSelfAsGameThread();
if (this->until_exit) {
while (!_exit_game) {
::GameLoop();