GL Studio C++ Runtime API
Mutex::ScopedLock Class Reference

A lock class to automagically un/lock a mutex within its scope. More...

#include <gls_mutex.h>

Public Member Functions

 ScopedLock (Mutex &mut)
 
 ~ScopedLock ()
 Releases the mutex automatically.
 

Detailed Description

A lock class to automagically un/lock a mutex within its scope.

Constructor & Destructor Documentation

◆ ScopedLock()

ScopedLock ( Mutex mut)
inline

Lock the given mutex (blocks on failure to acquire)

Parameters
mutThe mutex to lock.

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