pollymc/logic/net/NetWorker.cpp
Petr Mrázek 253067c782 Move all the things (YES. Move them.)
Also, implemented some basic modlist logic, to be wired up.
2013-08-17 13:40:51 +02:00

13 lines
236 B
C++

#include "NetWorker.h"
#include <QThreadStorage>
NetWorker& NetWorker::spawn()
{
static QThreadStorage<NetWorker *> storage;
if (!storage.hasLocalData())
{
storage.setLocalData(new NetWorker());
}
return *storage.localData();
}