FThreadSafeBool::AtomicSet

Sets a new value atomically, and returns the old value.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "HAL/ThreadSafeBool.h"

Syntax

bool AtomicSet
(
    bool bNewValue
)

Remarks

Sets a new value atomically, and returns the old value.

Returns

The old value

Parameters

Parameter

Description

bNewValue

Value to set