AGX Dynamics 2.41.3.0
Loading...
Searching...
No Matches
agx::SpinMutex Class Reference

Spin-lock mutex. More...

#include <SpinMutex.h>

Public Member Functions

 SpinMutex ()
 
 SpinMutex (const SpinMutex &other)
 
 ~SpinMutex ()
 
bool isLocked () const
 Debug.
 
void lock ()
 Lock the mutex.
 
SpinMutexoperator= (const SpinMutex &other)
 
bool try_lock ()
 
bool trylock ()
 Deprecated.
 
void unlock ()
 Unlock the mutex.
 

Detailed Description

Spin-lock mutex.

Definition at line 46 of file SpinMutex.h.

Constructor & Destructor Documentation

◆ SpinMutex() [1/2]

agx::SpinMutex::SpinMutex ( )

Definition at line 93 of file SpinMutex.h.

◆ ~SpinMutex()

agx::SpinMutex::~SpinMutex ( )

Definition at line 98 of file SpinMutex.h.

References agxAssert, agx::forcedShutdown(), and isLocked().

◆ SpinMutex() [2/2]

agx::SpinMutex::SpinMutex ( const SpinMutex other)

Member Function Documentation

◆ isLocked()

bool agx::SpinMutex::isLocked ( ) const

Debug.

Definition at line 149 of file SpinMutex.h.

Referenced by ~SpinMutex().

◆ lock()

void agx::SpinMutex::lock ( )

Lock the mutex.

Definition at line 103 of file SpinMutex.h.

◆ operator=()

SpinMutex & agx::SpinMutex::operator= ( const SpinMutex other)

◆ try_lock()

bool agx::SpinMutex::try_lock ( )

Definition at line 139 of file SpinMutex.h.

◆ trylock()

bool agx::SpinMutex::trylock ( )

Deprecated.

Prefer the standard try_lock. Try to lock the mutex.

Returns
false if lock failed

Definition at line 129 of file SpinMutex.h.

◆ unlock()

void agx::SpinMutex::unlock ( )

Unlock the mutex.

Definition at line 120 of file SpinMutex.h.


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