engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FWindowsSystemWideCriticalSection类 参考

System-Wide Critical Section for windows using mutex 更多...

#include <WindowsCriticalSection.h>

Public 成员函数

 FWindowsSystemWideCriticalSection (const class FString &InName, FTimespan InTimeout=FTimespan::Zero())
 Construct a named, system-wide critical section and attempt to get access/ownership of it
 
bool IsValid () const
 Does the calling thread have ownership of the system-wide critical section? 更多...
 
void Release ()
 Releases system-wide critical section if it is currently owned
 
 ~FWindowsSystemWideCriticalSection ()
 Destructor releases system-wide critical section if it is currently owned
 

详细描述

System-Wide Critical Section for windows using mutex

成员函数说明

◆ IsValid()

bool FWindowsSystemWideCriticalSection::IsValid ( ) const

Does the calling thread have ownership of the system-wide critical section?

返回
True if obtained. WARNING: Returns true for an owned but previously abandoned locks so shared resources can be in undetermined states. You must handle shared data robustly.

该类的文档由以下文件生成: