Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LockMutex Class Reference

Lock a mutex on construction, unlock it on destruction. More...

#include <RageThreads.h>

Public Member Functions

 LockMutex (RageMutex &mut, const char *file, int line)
 
 LockMutex (RageMutex &mut)
 
 LockMutex (LockMutex &cpy)
 
void Unlock ()
 Unlock the mutex (before this would normally go out of scope).
 

Detailed Description

Lock a mutex on construction, unlock it on destruction.

Helps for functions with more than one return path.

Member Function Documentation

◆ Unlock()

void LockMutex::Unlock ( )

Unlock the mutex (before this would normally go out of scope).

This can only be called once.


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