iptv_thread_pool_t *iptv_tpool_last = NULL;
gtimer_t iptv_tpool_manage_timer;
-static void iptv_input_thread_manage(int count, int force);
+static void iptv_input_thread_manage_cb(void *aux);
static inline int iptv_tpool_safe_count(void)
{
tvh_mutex_unlock(&iptv_lock);
if (u32 == 0)
- iptv_input_thread_manage(iptv_tpool_safe_count(), 0);
+ gtimer_arm_rel(&iptv_tpool_manage_timer, iptv_input_thread_manage_cb, NULL, 0);
}
static void
}
}
+static void
+iptv_input_thread_manage_cb(void *aux)
+{
+ iptv_input_thread_manage(iptv_tpool_safe_count(), 0);
+}
+
void iptv_init ( void )
{
TAILQ_INIT(&iptv_tpool);