FGenericPlatformProcess::ConditionalSleep

Sleep thread until condition is satisfied.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformProcess.h

Include

#include "GenericPlatform/GenericPlatformProcess.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformProcess.cpp

Syntax

static void ConditionalSleep
(
    TFunctionRef< bool()> Condition,
    float SleepTime
)

Remarks

Sleep thread until condition is satisfied.

Parameters

Parameter

Description

Condition

Condition to evaluate.

SleepTime

Time to sleep

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss