浏览代码

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

legacy
Sam Hocevar gary 13 年前
父节点
当前提交
2ef212be53
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. +10
    -1
      src/ticker.cpp

+ 10
- 1
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()


正在加载...
取消
保存