We already have struct sched..
register_tasks(cookie);
s.default_timeout.tv_sec = 0;
s.default_timeout.tv_usec = 999 * 1000;
- ret = sched(&s);
+ ret = schedule(&s);
if (ret < 0)
PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
close_afs_tables();
register_task(audiod_task);
s.default_timeout.tv_sec = 0;
s.default_timeout.tv_usec = 99 * 1000;
- ret = sched(&s);
+ ret = schedule(&s);
PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
return EXIT_FAILURE;
if (ret < 0) /* can not use PARA_LOG here */
exit(EXIT_FAILURE);
pcd->task.event_handler = client_event_handler;
- ret = sched(&s);
+ ret = schedule(&s);
if (ret < 0)
PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
client_close(pcd);
register_task(&sot->task);
s.default_timeout.tv_sec = 1;
s.default_timeout.tv_usec = 0;
- ret = sched(&s);
+ ret = schedule(&s);
out:
free(sit->buf);
close_filters(fc);
sprintf(rn.task.status, "receiver node");
register_task(&rn.task);
- ret = sched(&s);
+ ret = schedule(&s);
out:
if (r_opened)
r->close(&rn);
*
* \sa task, now.
*/
-int sched(struct sched *s)
+int schedule(struct sched *s)
{
if (!initialized)
return -E_NOT_INITIALIZED;
/**
* unregister all tasks
*
- * This will cause \a sched() to return immediately because both the
+ * This will cause \a schedule() to return immediately because both the
* \a pre_select_list and the \a post_select_list are empty.
*/
void sched_shutdown(void)
void register_task(struct task *t);
void unregister_task(struct task *t);
-int sched(struct sched *s);
+int schedule(struct sched *s);
char *get_task_list(void);
int kill_task(char *id);
s.default_timeout.tv_sec = 1;
s.default_timeout.tv_usec = 0;
- ret = sched(&s);
+ ret = schedule(&s);
out:
if (ret < 0) {