FThreadSafeCounter::Subtract

Subtracts 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 Subtract
(
    int32 Amount
)

Remarks

Subtracts an amount and returns the old value.

Returns

the old value

Parameters

Parameter

Description

Amount

Amount to decrease 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