llarp::util::NullMutex

a mutex that does nothing More...

#include <threading.hpp>

Public Functions

Name
void lock() const
void unlock() const

Detailed Description

struct llarp::util::NullMutex;

a mutex that does nothing

this exists to convert mutexes that were initially in use (but may no longer be necessary) into no-op placeholders (except in debug mode where they complain loudly when they are actually accessed across different threads; see below).

the idea is to "turn off" the mutexes and see where they are actually needed.

Public Functions Documentation

function lock

inline void lock() const

function unlock

inline void unlock() const

Updated on 2026-01-10 at 22:49:45 +0000