tenno 0.1.0
Loading...
Searching...
No Matches
tenno::mutex Class Reference

A simple mutex implementation. More...

#include <mutex.hpp>

Public Member Functions

 mutex ()=default
 
 ~mutex ()=default
 
void lock () noexcept
 Lock the mutex.
 
bool try_lock () noexcept
 Try to lock the mutex.
 
void unlock () noexcept
 Unlock the mutex.
 

Detailed Description

A simple mutex implementation.

Definition at line 14 of file mutex.hpp.

Constructor & Destructor Documentation

◆ mutex()

tenno::mutex::mutex ( )
default

◆ ~mutex()

tenno::mutex::~mutex ( )
default

Member Function Documentation

◆ lock()

void tenno::mutex::lock ( )
inlinenoexcept

Lock the mutex.

Definition at line 23 of file mutex.hpp.

◆ try_lock()

bool tenno::mutex::try_lock ( )
inlinenoexcept

Try to lock the mutex.

Returns
true if the mutex was locked, false otherwise

Definition at line 66 of file mutex.hpp.

◆ unlock()

void tenno::mutex::unlock ( )
inlinenoexcept

Unlock the mutex.

Definition at line 97 of file mutex.hpp.


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