Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZStd::spin_mutex Class Reference

#include <spin_mutex.h>

Public Member Functions

 spin_mutex (bool isLocked=false)
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Detailed Description

A simple mutex implemented with a spin lock, please don't use this instead of a regular mutex with the assumption it will be faster. Spin locks can introduce a whole new set of performance issues, this is provided only for use in special cases.


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