Permalink
Browse files

vdr-plugin-vnsiserver: raise nice level for vnsi threads

  • Loading branch information...
1 parent 0681d57 commit 0c2595a2edb46132e8b304568dd21fa1eb76a700 @FernetMenta FernetMenta committed Dec 3, 2013
@@ -272,8 +272,6 @@ void cVNSIClient::EpgChange()
if (!VNSIChannelFilter.PassFilter(*channel))
continue;
- INFOLOG("Trigger EPG update for channel %s", channel->Name());
-
uint32_t channelId = CreateStringHash(schedule->ChannelID().ToString());
it = m_epgUpdate.find(channelId);
if (it == m_epgUpdate.end())
@@ -284,6 +282,8 @@ void cVNSIClient::EpgChange()
if (it->second >= lastEvent->StartTime())
continue;
+ INFOLOG("Trigger EPG update for channel %s", channel->Name());
+
cResponsePacket *resp = new cResponsePacket();
if (!resp->initStatus(VNSI_STATUS_EPGCHANGE))
{
@@ -225,6 +225,9 @@ void cVNSIServer::Action(void)
}
int ret = system(cmd);
+ // set thread priority
+ SetPriority(1);
+
while (Running())
{
FD_ZERO(&fds);

0 comments on commit 0c2595a

Please sign in to comment.