diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-02-19 21:08:24 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-02-19 21:08:24 +0100 |
commit | c2db825b071974369ab40300210f5ecb933744a6 (patch) | |
tree | 7414d3793d69acac1a399f1bf1c266bd595fc1bc /dxr3output.h | |
parent | b74b93b0d95ef21c4bccbbc8ef53322b4b1565a5 (diff) | |
download | vdr-plugin-dxr3-c2db825b071974369ab40300210f5ecb933744a6.tar.gz vdr-plugin-dxr3-c2db825b071974369ab40300210f5ecb933744a6.tar.bz2 |
make more use of Uncopyable
Diffstat (limited to 'dxr3output.h')
-rw-r--r-- | dxr3output.h | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/dxr3output.h b/dxr3output.h index 7afccc2..9b8d408 100644 --- a/dxr3output.h +++ b/dxr3output.h @@ -24,25 +24,19 @@ #include "dxr3syncbuffer.h" #include "dxr3audiodecoder.h" +#include "Uncopyable.h" // ================================== -class cDxr3OutputThread : public cThread -{ +class cDxr3OutputThread : public cThread, private Uncopyable { public: cDxr3OutputThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer); virtual ~cDxr3OutputThread() { - m_buffer.Stop(); - Cancel(3); + m_buffer.Stop(); + Cancel(3); }; - bool NeedResync() - { - return m_bNeedResync; - }; - void ClearResyncRequest() - { - m_bNeedResync = false; - }; + bool NeedResync() const { return m_bNeedResync; } + void ClearResyncRequest() { m_bNeedResync = false; } protected: virtual void Action() = 0; @@ -50,37 +44,24 @@ protected: cDxr3Interface& m_dxr3Device; cDxr3SyncBuffer& m_buffer; bool m_bNeedResync; - -private: - cDxr3OutputThread(cDxr3OutputThread&); // no copy constructor }; // ================================== -class cDxr3AudioOutThread : public cDxr3OutputThread -{ +class cDxr3AudioOutThread : public cDxr3OutputThread { public: cDxr3AudioOutThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer); protected: void Action(); - -private: - //cDxr3AudioOutThread(); // no standard constructor - cDxr3AudioOutThread(cDxr3AudioOutThread&); // no copy constructor }; // ================================== -class cDxr3VideoOutThread : public cDxr3OutputThread -{ +class cDxr3VideoOutThread : public cDxr3OutputThread { public: cDxr3VideoOutThread(cDxr3Interface& dxr3Device, cDxr3SyncBuffer& buffer); protected: void Action(); - -private: - //cDxr3VideoOutThread(); // no standard constructor - cDxr3VideoOutThread(cDxr3VideoOutThread&); // no copy constructor }; #endif /*_DXR3OUTPUTTHREAD_H_*/ |