CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
SpinLock Class Reference

Spinning lock mutex. More...

#include <cc/SpinLock>

Public Member Functions

 SpinLock ()
 Create a new spinning lock.
 
bool tryAcquire ()
 Try to acquire the spinning lock.
 
void acquire ()
 Aquire the spinning lock.
 
void release ()
 Release the spinning lock.
 

Detailed Description

Spinning lock mutex.

See also
Guard

Constructor & Destructor Documentation

◆ SpinLock()

SpinLock ( )

Create a new spinning lock.

Member Function Documentation

◆ tryAcquire()

bool tryAcquire ( )

Try to acquire the spinning lock.

Returns
True if successful

◆ acquire()

void acquire ( )

Aquire the spinning lock.

◆ release()

void release ( )

Release the spinning lock.