mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-15 01:13:36 +02:00
sectionsd: add sectionsd_isReady function
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1743 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1564c1d9ca
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-10-03 (Mon, 03 Oct 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
#define TIME_FSEIT_SKIPPING 240
|
||||
#endif
|
||||
|
||||
static bool sectionsd_ready = false;
|
||||
static bool reader_ready = true;
|
||||
//#define MAX_EVENTS 6000
|
||||
static unsigned int max_events;
|
||||
@@ -8881,6 +8882,7 @@ static void *cnThread(void *)
|
||||
rc = pthread_getschedparam(pthread_self(), &policy, &parm);
|
||||
dprintf("mainloop getschedparam %d policy %d prio %d\n", rc, policy, parm.sched_priority);
|
||||
}
|
||||
sectionsd_ready = true;
|
||||
|
||||
while (sectionsd_server.run(sectionsd_parse_command, sectionsd::ACTVERSION, true)) {
|
||||
sched_yield();
|
||||
@@ -9631,3 +9633,8 @@ static void *cnThread(void *)
|
||||
SIlanguage::setLanguages(newLanguages);
|
||||
SIlanguage::saveLanguages();
|
||||
}
|
||||
|
||||
bool sectionsd_isReady(void)
|
||||
{
|
||||
return sectionsd_ready;
|
||||
}
|
||||
|
Reference in New Issue
Block a user