FGenericPlatformProcess::FSemaphore::TryLock

Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()).

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformProcess.h"

Syntax

bool TryLock
(
    uint64 NanosecondsToWait
)

Remarks

Tries to acquire and exclusive access for a specified amount of nanoseconds (also known as TryWait()).

Returns

false if was not able to lock within given time

Parameters

Parameter

Description

Nanoseconds

(10^-9 seconds) to wait for,

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