FPThreadsCriticalSection

This is the PThreads version of a critical section. It uses pthreads to implement its locking.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "HAL/PThreadCriticalSection.h"

Syntax

class FPThreadsCriticalSection

Remarks

This is the PThreads version of a critical section. It uses pthreads to implement its locking.

Constructors

Name Description

Public function

FPThreadsCriticalSection()

Constructor that initializes the aggregated critical section

Destructors

Name Description

Public function

~FPThreadsCriticalSection()

Destructor cleaning up the critical section

Functions

Name Description

Public function

void

 

Lock()

Locks the critical section

Public function

bool

 

TryLock()

Attempt to take a lock and returns whether or not a lock was taken.

Public function

void

 

Unlock()

Releases the lock on the critical seciton

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