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_size(QSize()),
8  m_errored(false)
9 {
10 }
11 
13 {
14  return const_cast<QAtomicInt&>(m_referenceCount).fetchAndAddOrdered(0) > 1;
15 }
16 
18 {
19  return QStringList();
20 }
MythRender::GetDescription
virtual QStringList GetDescription()
Definition: mythrender.cpp:17
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
mythrender_base.h
RenderType
RenderType
Definition: mythrender_base.h:15
MythRender::IsShared
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:12
ReferenceCounter::m_referenceCount
QAtomicInt m_referenceCount
Definition: referencecounter.h:57
MythRender::MythRender
MythRender(RenderType type)
Definition: mythrender.cpp:4
ReferenceCounter
General purpose reference counter.
Definition: referencecounter.h:26