FThread::Join

Blocks the current thread until the thread identified by `this_ finishes its execution.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "HAL/Thread.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/Thread.cpp

Syntax

void Join()

Remarks

Blocks the current thread until the thread identified by this_ finishes its execution. The completion of the thread identified by this synchronizes with the corresponding successful return from Join(). No synchronization is performed on `this itself. Concurrently calling Join() on the same FThread object from multiple threads constitutes a data race that results in undefined behavior.

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