Open Reality Reference Guide
FBFastLock Class Reference

FBFastLock. More...

#include <fbsystem.h>

Public Member Functions

 FBFastLock ()
 Constructor. More...
 
 ~FBFastLock ()
 Destructor. More...
 
void Lock ()
 Enter lock. More...
 
void Unlock ()
 Exit lock. More...
 

Detailed Description

FBFastLock.

This is the fastest thread lock available since its only a simple spinlock (1 instruction, test and set), BUT, note that this is not reentrant. i.e. The same thread cannot call lock two consecutive times or the thread will spinlock forever.

Definition at line 598 of file fbsystem.h.

Constructor & Destructor Documentation

◆ FBFastLock()

Constructor.

◆ ~FBFastLock()

~FBFastLock ( )

Destructor.

Member Function Documentation

◆ Lock()

void Lock ( )

Enter lock.

◆ Unlock()

void Unlock ( )

Exit lock.


The documentation for this class was generated from the following file: