AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::SpinMutex Class Reference

Spin-lock mutex. More...

#include <SpinMutex.h>

Public Member Functions

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

Detailed Description

Spin-lock mutex.

Definition at line 46 of file SpinMutex.h.

Constructor & Destructor Documentation

agx::SpinMutex::SpinMutex ( )

Definition at line 93 of file SpinMutex.h.

agx::SpinMutex::~SpinMutex ( )

Definition at line 98 of file SpinMutex.h.

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

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

Member Function Documentation

bool agx::SpinMutex::isLocked ( ) const

Debug.

Definition at line 149 of file SpinMutex.h.

Referenced by ~SpinMutex().

void agx::SpinMutex::lock ( )

Lock the mutex.

Definition at line 103 of file SpinMutex.h.

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

Definition at line 139 of file SpinMutex.h.

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.

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: