Added blank worker thread
This commit is contained in:
26
Source/Integration/WorkerRunnable.cpp
Normal file
26
Source/Integration/WorkerRunnable.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user