You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb zack.neyland #preflight skip (not built) [CL 21856949 by Josh Adams in ue5-main branch]
27 lines
517 B
C++
27 lines
517 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "HAL/Runnable.h"
|
|
#include "Templates/Function.h"
|
|
#include "Misc/DateTime.h"
|
|
|
|
|
|
class ScheduledSyncTimer : FRunnable
|
|
{
|
|
public:
|
|
~ScheduledSyncTimer();
|
|
|
|
void Start(const FDateTime& InScheduledTime, const TFunction<void()>& InTimerElapsedCallback);
|
|
void Stop();
|
|
|
|
private:
|
|
virtual uint32 Run() override;
|
|
|
|
bool bFinished = false;
|
|
|
|
FDateTime ScheduledTime;
|
|
FRunnableThread* WorkerThread = nullptr;
|
|
TFunction<void()> TimerElapsedCallback;
|
|
};
|