Nebula
Loading...
Searching...
No Matches
Threading::Spinlock Class Reference

#include <spinlock.h>

Public Member Functions

 Spinlock ()
 Constructor.
 
 ~Spinlock ()
 Destructor.
 
void operator= (Spinlock &&rhs)
 Move operator.
 
void Lock ()
 Lock.
 
void Unlock ()
 Unlock.
 

Private Attributes

volatile Threading::ThreadId lock
 

Constructor & Destructor Documentation

◆ Spinlock()

Threading::Spinlock::Spinlock ( )
inline

Constructor.

◆ ~Spinlock()

Threading::Spinlock::~Spinlock ( )
inline

Destructor.

Member Function Documentation

◆ Lock()

void Threading::Spinlock::Lock ( )
inline

Lock.

◆ operator=()

void Threading::Spinlock::operator= ( Spinlock && rhs)
inline

Move operator.

◆ Unlock()

void Threading::Spinlock::Unlock ( )
inline

Unlock.

Member Data Documentation

◆ lock

volatile Threading::ThreadId Threading::Spinlock::lock
private

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