summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 17:42:33 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 17:42:33 +0000
commit61e31de98b97f556cfb2a0cafa172bde673e7859 (patch)
treef92c3c42107f89a7de7b3c489527b3b6a2421078 /thread.h
parentc5cb6d2e099c9ae44cc3d26e4800c9f9101852e7 (diff)
downloadvdr-plugin-live-61e31de98b97f556cfb2a0cafa172bde673e7859.tar.gz
vdr-plugin-live-61e31de98b97f556cfb2a0cafa172bde673e7859.tar.bz2
- removed thread-unsafe call of cPlugin::ConfigDirectory and replaced it with Plugin::GetConfigDirectory
- implemented proper shutdown of server thread on vdr termination
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index d0a3bca..ee1c764 100644
--- a/thread.h
+++ b/thread.h
@@ -1,8 +1,11 @@
#ifndef VDR_LIVE_THREAD_H
#define VDR_LIVE_THREAD_H
+#include <memory>
#include <vdr/thread.h>
+namespace tnt { class Tntnet; }
+
namespace vdrlive {
class ServerThread : public cThread {
@@ -10,11 +13,13 @@ public:
ServerThread();
virtual ~ServerThread();
+ void Stop();
+
protected:
virtual void Action();
private:
- char* m_configPath;
+ std::auto_ptr< tnt::Tntnet > m_server;
};
} // namespace vdrlive