HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
spin_mutex::lock_guard Class Reference

#include <thread.h>

Public Member Functions

 lock_guard (spin_mutex &fm) noexcept
 
 ~lock_guard () noexcept
 

Detailed Description

Helper class: scoped lock for a spin_mutex – grabs the lock upon construction, releases the lock when it exits scope.

Definition at line 242 of file thread.h.

Constructor & Destructor Documentation

spin_mutex::lock_guard::lock_guard ( spin_mutex fm)
inlinenoexcept

Definition at line 244 of file thread.h.

spin_mutex::lock_guard::~lock_guard ( )
inlinenoexcept

Definition at line 249 of file thread.h.


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