Files
UnrealEngineUWP/Engine/Source/Programs/SlateUGS/Private/ScheduledSyncTimer.h
Josh Adams bb4d7afa29 - Changes to get SlateUGS compiling without PCH or non-unity
#rb zack.neyland
#preflight skip (not built)

[CL 21856949 by Josh Adams in ue5-main branch]
2022-09-07 14:07:32 -04:00

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;
};