![]() |
Prusa Slicer 2.6.0
|
Handy little spin mutex for the cached meshes. Implements the "Lockable" concept. More...
#include <src/libslic3r/MTUtils.hpp>
Public Member Functions | |
| SpinMutex () | |
| void | lock () |
| bool | try_lock () |
| void | unlock () |
Private Attributes | |
| std::atomic_flag | m_flg |
Static Private Attributes | |
| static const auto | MO_ACQ = std::memory_order_acquire |
| static const auto | MO_REL = std::memory_order_release |
Handy little spin mutex for the cached meshes. Implements the "Lockable" concept.
|
inline |
|
inline |
|
inline |
|
private |
Referenced by SpinMutex(), lock(), try_lock(), and unlock().
|
staticprivate |
Referenced by lock(), and try_lock().
|
staticprivate |
Referenced by SpinMutex(), and unlock().