26 lines
410 B
C++
26 lines
410 B
C++
|
|
|
||
|
|
#include "WorkerRunnable.hpp"
|
||
|
|
#include "engineutil.hpp"
|
||
|
|
|
||
|
|
|
||
|
|
bool FWorkerRunnable::Init()
|
||
|
|
{
|
||
|
|
engineutil::RawPrint("WorkerRunnable::Init");
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32 FWorkerRunnable::Run()
|
||
|
|
{
|
||
|
|
while (!StopRequested)
|
||
|
|
{
|
||
|
|
engineutil::RawPrint("WorkerRunnable::Run");
|
||
|
|
FPlatformProcess::Sleep(1.0);
|
||
|
|
}
|
||
|
|
engineutil::RawPrint("WorkerRunnable Done");
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
void FWorkerRunnable::Stop()
|
||
|
|
{
|
||
|
|
StopRequested = true;
|
||
|
|
}
|