TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
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). | |
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.
|
inlinenoexcept |
Successfully try to lock the null_mutex.