TSDuck Version 3.15-955 (TSDuck - The MPEG Transport Stream Toolkit)
ts::NullMutex Class Reference

Empty mutex implementation. More...

Inheritance diagram for ts::NullMutex:
Collaboration diagram for ts::NullMutex:

Public Member Functions

virtual bool acquire (MilliSecond timeout=Infinite) override
 Acquire the mutex, does nothing but successfully! More...
 
virtual bool release () override
 Release the mutex, does nothing but successfully! More...
 

Detailed Description

Empty mutex implementation.

The concrete class ts::NullMutex is an empty mutex implementation which does nothing and can be used wherever a ts::MutexInterface is required but no actual synchronization is necessary (non-threaded applications for instances).

Member Function Documentation

◆ acquire()

virtual bool ts::NullMutex::acquire ( MilliSecond  timeout = Infinite)
inlineoverridevirtual

Acquire the mutex, does nothing but successfully!

Parameters
[in]timeoutMaximum number of milliseconds to wait for the mutex. Ignored.
Returns
Always true.

Implements ts::MutexInterface.

◆ release()

virtual bool ts::NullMutex::release ( )
inlineoverridevirtual

Release the mutex, does nothing but successfully!

Returns
Always true.

Implements ts::MutexInterface.


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