Add task names to runqueue entries

This commit is contained in:
Howard Chu 2005-04-23 00:27:57 +00:00
parent 2d277bef3b
commit b978e77932
2 changed files with 10 additions and 2 deletions

View file

@ -27,6 +27,8 @@ typedef struct re_s {
LDAP_STAILQ_ENTRY(re_s) rnext;
ldap_pvt_thread_start_t *routine;
void *arg;
char *tname;
char *tspec;
} re_t;
typedef struct runqueue_s {
@ -40,7 +42,9 @@ ldap_pvt_runqueue_insert(
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* )

View file

@ -38,7 +38,9 @@ ldap_pvt_runqueue_insert(
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;
@ -51,6 +53,8 @@ ldap_pvt_runqueue_insert(
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;