MOS Source Code
Loading...
Searching...
No Matches
SpinLocker Class Reference

#include <spinlock.hpp>

Collaboration diagram for SpinLocker:

Public Member Functions

 SpinLocker (spinlock_t *lock)
 SpinLocker (const SpinLocker &)=delete
SpinLockeroperator= (const SpinLocker &)=delete
 SpinLocker (SpinLocker &&)=delete
SpinLockeroperator= (SpinLocker &&)=delete
void discard ()
 ~SpinLocker ()
SpinUnlocker UnlockTemporarily ()

Private Attributes

spinlock_tm_lock

Detailed Description

Definition at line 147 of file spinlock.hpp.

Constructor & Destructor Documentation

◆ SpinLocker() [1/3]

SpinLocker ( spinlock_t * lock)
inlineexplicit

Definition at line 150 of file spinlock.hpp.

Referenced by operator=(), operator=(), SpinLocker(), and SpinLocker().

◆ SpinLocker() [2/3]

SpinLocker ( const SpinLocker & )
delete
Here is the call graph for this function:

◆ SpinLocker() [3/3]

SpinLocker ( SpinLocker && )
delete
Here is the call graph for this function:

◆ ~SpinLocker()

~SpinLocker ( )
inline

Definition at line 165 of file spinlock.hpp.

Member Function Documentation

◆ operator=() [1/2]

SpinLocker & operator= ( const SpinLocker & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

SpinLocker & operator= ( SpinLocker && )
delete
Here is the call graph for this function:

◆ discard()

void discard ( )
inline

Definition at line 160 of file spinlock.hpp.

Referenced by Console::on_read().

◆ UnlockTemporarily()

SpinUnlocker UnlockTemporarily ( )
inline

Definition at line 171 of file spinlock.hpp.

Referenced by Console::on_read().

Member Data Documentation

◆ m_lock

spinlock_t* m_lock
private

Definition at line 177 of file spinlock.hpp.

Referenced by discard(), SpinLocker(), UnlockTemporarily(), and ~SpinLocker().


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