FThreadSafeCounter::Set

Sets the counter to a specific value and returns the old value.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/ThreadSafeCounter.h

Include

#include "HAL/ThreadSafeCounter.h"

Syntax

int32 Set
(
    int32 Value
)

Remarks

Sets the counter to a specific value and returns the old value.

Returns

The old value

Parameters

Parameter

Description

Value

Value to set the counter to

See Also