move worker to MapContext

This commit is contained in:
Konstantin Käfer
2015-03-24 10:59:31 +01:00
committed by John Firebaugh
parent 67fa80f5e9
commit f272d13dea
4 changed files with 13 additions and 11 deletions

View File

@@ -175,7 +175,6 @@ private:
void resize(uint16_t width, uint16_t height, float ratio, uint16_t fbWidth, uint16_t fbHeight);
util::ptr<Sprite> getSprite();
Worker& getWorker();
// Checks if render thread needs to pause
void checkForPause();
@@ -215,7 +214,6 @@ private:
std::unique_ptr<MapContext> context;
private:
std::unique_ptr<Worker> workers;
std::thread thread;
std::unique_ptr<uv::async> asyncTerminate;
std::unique_ptr<uv::async> asyncUpdate;