mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
Added ldap_pvt_runqueue_find()
This commit is contained in:
parent
410638fda1
commit
dd646eb734
2 changed files with 23 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue