LDAP_STAILQ_ENTRY(re_s) rnext;
ldap_pvt_thread_start_t *routine;
void *arg;
+ char *tname;
+ char *tspec;
} re_t;
typedef struct runqueue_s {
struct runqueue_s* rq,
time_t interval,
ldap_pvt_thread_start_t* routine,
- void *arg
+ void *arg,
+ char *tname,
+ char *tspec
);
LDAP_F( struct re_s* )
struct runqueue_s* rq,
time_t interval,
ldap_pvt_thread_start_t *routine,
- void *arg
+ void *arg,
+ char *tname,
+ char *tspec
)
{
struct re_s* entry;
entry->next_sched.tv_usec = 0;
entry->routine = routine;
entry->arg = arg;
+ entry->tname = tname;
+ entry->tspec = tspec;
LDAP_STAILQ_INSERT_TAIL( &rq->task_list, entry, tnext );
}
return entry;