From b978e779326fe7f3cf52c6a9b7c0f00916e8bfaf Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 23 Apr 2005 00:27:57 +0000 Subject: [PATCH] Add task names to runqueue entries --- include/ldap_rq.h | 6 +++++- libraries/libldap_r/rq.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/ldap_rq.h b/include/ldap_rq.h index 4fc9c072bb..4d3923b26e 100644 --- a/include/ldap_rq.h +++ b/include/ldap_rq.h @@ -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* ) diff --git a/libraries/libldap_r/rq.c b/libraries/libldap_r/rq.c index adfaea5641..99daef6ca1 100644 --- a/libraries/libldap_r/rq.c +++ b/libraries/libldap_r/rq.c @@ -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; -- 2.39.5