Skip to content
Snippets Groups Projects
Commit b978e779 authored by Howard Chu's avatar Howard Chu
Browse files

Add task names to runqueue entries

parent 2d277bef
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment