mirror of
				https://github.com/DigitalDevices/pvr.octonet.git
				synced 2025-03-01 10:53:09 +00:00 
			
		
		
		
	Remove old process thread
This commit is contained in:
		| @@ -34,23 +34,10 @@ OctonetData::OctonetData(const std::string& octonetAddress, | |||||||
|   if (!LoadChannelList()) |   if (!LoadChannelList()) | ||||||
|     kodi::QueueFormattedNotification(QUEUE_ERROR, kodi::addon::GetLocalizedString(30001).c_str(), |     kodi::QueueFormattedNotification(QUEUE_ERROR, kodi::addon::GetLocalizedString(30001).c_str(), | ||||||
|                                      m_channels.size()); |                                      m_channels.size()); | ||||||
|  |  | ||||||
|   /* |  | ||||||
|   // Currently unused, as thread was already present before with |  | ||||||
|   // p8platform, by remove of them was it added as C++11 thread way. |  | ||||||
|   kodi::Log(ADDON_LOG_INFO, "%s Starting separate client update thread...", __func__); |  | ||||||
|   m_running = true; |  | ||||||
|   m_thread = std::thread([&] { Process(); }); |  | ||||||
|   */ |  | ||||||
| } | } | ||||||
|  |  | ||||||
| OctonetData::~OctonetData(void) | OctonetData::~OctonetData(void) | ||||||
| { | { | ||||||
|   /* |  | ||||||
|   m_running = false; |  | ||||||
|   if (m_thread.joinable()) |  | ||||||
|     m_thread.join(); |  | ||||||
|   */ |  | ||||||
| } | } | ||||||
|  |  | ||||||
| PVR_ERROR OctonetData::GetCapabilities(kodi::addon::PVRCapabilities& capabilities) | PVR_ERROR OctonetData::GetCapabilities(kodi::addon::PVRCapabilities& capabilities) | ||||||
| @@ -258,11 +245,6 @@ bool OctonetData::LoadEPG(void) | |||||||
|   return true; |   return true; | ||||||
| } | } | ||||||
|  |  | ||||||
| void OctonetData::Process() |  | ||||||
| { |  | ||||||
|   return; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| PVR_ERROR OctonetData::GetChannelsAmount(int& amount) | PVR_ERROR OctonetData::GetChannelsAmount(int& amount) | ||||||
| { | { | ||||||
|   amount = m_channels.size(); |   amount = m_channels.size(); | ||||||
|   | |||||||
| @@ -77,8 +77,6 @@ public: | |||||||
|   void CloseLiveStream() override; |   void CloseLiveStream() override; | ||||||
|  |  | ||||||
| protected: | protected: | ||||||
|   void Process(); |  | ||||||
|  |  | ||||||
|   const std::string& GetUrl(int id) const; |   const std::string& GetUrl(int id) const; | ||||||
|   const std::string& GetName(int id) const; |   const std::string& GetName(int id) const; | ||||||
|  |  | ||||||
| @@ -95,7 +93,4 @@ private: | |||||||
|   std::vector<OctonetGroup> m_groups; |   std::vector<OctonetGroup> m_groups; | ||||||
|  |  | ||||||
|   time_t m_lastEpgLoad; |   time_t m_lastEpgLoad; | ||||||
|  |  | ||||||
|   std::atomic<bool> m_running = {false}; |  | ||||||
|   std::thread m_thread; |  | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user