CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::NullLockable Struct Referencefinal

A fake lockable type that performs no locking. More...

#include <CeresEngine/Foundation/Threading/Threading.hpp>

Public Member Functions

constexpr void lock () noexcept
 
constexpr bool try_lock () noexcept
 
constexpr void unlock () noexcept
 
template<typename Duration >
constexpr bool try_lock_for (Duration) noexcept
 
template<typename TimeLimit >
constexpr bool try_lock_until (TimeLimit) noexcept
 

Detailed Description

A fake lockable type that performs no locking.

Can be given as a template parameter to fake a mutex.

Member Function Documentation

◆ lock()

constexpr void CeresEngine::NullLockable::lock ( )
inlineconstexprnoexcept

◆ try_lock()

constexpr bool CeresEngine::NullLockable::try_lock ( )
inlineconstexprnoexcept

◆ try_lock_for()

template<typename Duration >
constexpr bool CeresEngine::NullLockable::try_lock_for ( Duration  )
inlineconstexprnoexcept

◆ try_lock_until()

template<typename TimeLimit >
constexpr bool CeresEngine::NullLockable::try_lock_until ( TimeLimit  )
inlineconstexprnoexcept

◆ unlock()

constexpr void CeresEngine::NullLockable::unlock ( )
inlineconstexprnoexcept

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