From 61e31de98b97f556cfb2a0cafa172bde673e7859 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 4 Jan 2007 17:42:33 +0000 Subject: - removed thread-unsafe call of cPlugin::ConfigDirectory and replaced it with Plugin::GetConfigDirectory - implemented proper shutdown of server thread on vdr termination --- thread.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'thread.h') 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 #include +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 -- cgit v1.2.3