MythTV master
mythrender.cpp
Go to the documentation of this file.
1// MythTV
2#include "mythrender_base.h"
3
5 : ReferenceCounter(QString("MythRender:%1").arg(type)),
6 m_type(type),
7 m_errored(false)
8{
9}
10
12{
13 return const_cast<QAtomicInt&>(m_referenceCount).fetchAndAddOrdered(0) > 1;
14}
15
17{
18 return {};
19}
MythRender(RenderType type)
Definition: mythrender.cpp:4
virtual QStringList GetDescription()
Definition: mythrender.cpp:16
bool IsShared(void) const
Warning: The reference count can be decremented between the call to this function and the use of it's...
Definition: mythrender.cpp:11
General purpose reference counter.
QAtomicInt m_referenceCount
RenderType
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:89