mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-01 23:24:31 +02:00
13 lines
236 B
C++
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();
|
|
}
|