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 &&other)
 
SpinLockeroperator= (SpinLocker &&other)
 
 ~SpinLocker ()
 

Private Attributes

spinlock_tm_lock
 

Detailed Description

Definition at line 119 of file spinlock.hpp.

Constructor & Destructor Documentation

◆ SpinLocker() [1/3]

SpinLocker ( spinlock_t * lock)
inline

Definition at line 122 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 && other)
inline

Definition at line 131 of file spinlock.hpp.

+ Here is the call graph for this function:

◆ ~SpinLocker()

~SpinLocker ( )
inline

Definition at line 147 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 && other)
inline

Definition at line 137 of file spinlock.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_lock

spinlock_t* m_lock
private

Definition at line 154 of file spinlock.hpp.

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


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