From 2ef212be5384b959b588354978e45ddd95c7b823 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 5 Jan 2012 17:35:57 +0000 Subject: [PATCH] core: throw out the idea of a disk thread, let's seem what comes from it. --- src/ticker.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ticker.cpp b/src/ticker.cpp index 926c21f9..9e474559 100644 --- a/src/ticker.cpp +++ b/src/ticker.cpp @@ -56,6 +56,7 @@ public: #endif gametick.Push(0); delete gamethread; + delete diskthread; } private: @@ -72,7 +73,8 @@ private: /* Background threads */ static void *GameThreadMain(void *p); static void *DrawThreadMain(void *p); /* unused */ - Thread *gamethread, *drawthread; + static void *DiskThreadMain(void *p); + Thread *gamethread, *drawthread, *diskthread; Queue gametick, drawtick; /* Shutdown management */ @@ -308,6 +310,11 @@ void *TickerData::DrawThreadMain(void *p) return NULL; } +void *TickerData::DiskThreadMain(void *p) +{ + return NULL; +} + void Ticker::SetState(Entity *entity, uint32_t state) { @@ -325,6 +332,8 @@ void Ticker::Setup(float fps) data->gamethread = new Thread(TickerData::GameThreadMain, NULL); data->gametick.Push(1); + + data->diskthread = new Thread(TickerData::DiskThreadMain, NULL); } void Ticker::TickDraw()