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

This is the PThreads version of a critical section. 更多...

#include <PThreadCriticalSection.h>

Public 成员函数

FORCEINLINE FPThreadsCriticalSection (void)
 Constructor that initializes the aggregated critical section
 
FORCEINLINE void Lock (void)
 Locks the critical section
 
FORCEINLINE bool TryLock ()
 Attempt to take a lock and returns whether or not a lock was taken. 更多...
 
FORCEINLINE void Unlock (void)
 Releases the lock on the critical seciton
 
FORCEINLINE ~FPThreadsCriticalSection (void)
 Destructor cleaning up the critical section
 

详细描述

This is the PThreads version of a critical section.

It uses pthreads to implement its locking.

成员函数说明

◆ TryLock()

FORCEINLINE bool FPThreadsCriticalSection::TryLock ( )
inline

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

返回
true if a lock was taken, false otherwise.

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