Browse Source

core: throw out the idea of a disk thread, let's seem what comes from it.

legacy
Sam Hocevar gary 13 years ago
parent
commit
2ef212be53
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/ticker.cpp

+ 10
- 1
src/ticker.cpp View File

@@ -56,6 +56,7 @@ public:
#endif #endif
gametick.Push(0); gametick.Push(0);
delete gamethread; delete gamethread;
delete diskthread;
} }


private: private:
@@ -72,7 +73,8 @@ private:
/* Background threads */ /* Background threads */
static void *GameThreadMain(void *p); static void *GameThreadMain(void *p);
static void *DrawThreadMain(void *p); /* unused */ static void *DrawThreadMain(void *p); /* unused */
Thread *gamethread, *drawthread;
static void *DiskThreadMain(void *p);
Thread *gamethread, *drawthread, *diskthread;
Queue gametick, drawtick; Queue gametick, drawtick;


/* Shutdown management */ /* Shutdown management */
@@ -308,6 +310,11 @@ void *TickerData::DrawThreadMain(void *p)
return NULL; return NULL;
} }


void *TickerData::DiskThreadMain(void *p)
{
return NULL;
}

void Ticker::SetState(Entity *entity, uint32_t state) 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->gamethread = new Thread(TickerData::GameThreadMain, NULL);
data->gametick.Push(1); data->gametick.Push(1);

data->diskthread = new Thread(TickerData::DiskThreadMain, NULL);
} }


void Ticker::TickDraw() void Ticker::TickDraw()


Loading…
Cancel
Save