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

Added ldap_pvt_runqueue_find()

parent 410638fd
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,13 @@ ldap_pvt_runqueue_insert(
void *arg
);
LDAP_F( struct re_s* )
ldap_pvt_runqueue_find(
struct runqueue_s* rq,
ldap_pvt_thread_start_t* routine,
void *arg
);
LDAP_F( void )
ldap_pvt_runqueue_remove(
struct runqueue_s* rq,
......
......@@ -53,6 +53,22 @@ ldap_pvt_runqueue_insert(
LDAP_STAILQ_INSERT_TAIL( &rq->task_list, entry, tnext );
}
struct re_s *
ldap_pvt_runqueue_find(
struct runqueue_s *rq,
ldap_pvt_thread_start_t *routine,
void *arg
)
{
struct re_s* e;
LDAP_STAILQ_FOREACH( e, &rq->task_list, tnext ) {
if ( e->routine == routine && e->arg == arg )
return e;
}
return NULL;
}
void
ldap_pvt_runqueue_remove(
struct runqueue_s* rq,
......
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