mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
Add task names to runqueue entries
This commit is contained in:
parent
2d277bef3b
commit
b978e77932
2 changed files with 10 additions and 2 deletions
|
|
@ -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* )
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue