FThreadSafeCounter::Add

Adds an amount and returns the old value.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "HAL/ThreadSafeCounter.h"

Syntax

int32 Add
(
    int32 Amount
)

Remarks

Adds an amount and returns the old value.

Returns

the old value

Parameters

Parameter

Description

Amount

Amount to increase the counter by

See Also

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