FThreadSafeCounter::Add

Adds an amount 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 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