TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::null_mutex Class Reference

A null_mutex class which can be used to replace std::mutex or std::recursive_mutex. More...

#include <tsPlatform.h>

Public Member Functions

void lock () noexcept
 Lock the null_mutex (does nothing).
 
bool try_lock () noexcept
 Successfully try to lock the null_mutex.
 
void unlock () noexcept
 Unlock the null_mutex (does nothing).
 

Detailed Description

A null_mutex class which can be used to replace std::mutex or std::recursive_mutex.

Used to instantiate synchronized template classes in a mono-thread environment.

Member Function Documentation

◆ try_lock()

bool ts::null_mutex::try_lock ( )
inlinenoexcept

Successfully try to lock the null_mutex.

Returns
Always true.

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