mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Added ldap_pvt_runqueue_find()
This commit is contained in:
parent
410638fda1
commit
dd646eb734
@ -43,6 +43,13 @@ ldap_pvt_runqueue_insert(
|
|||||||
void *arg
|
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_F( void )
|
||||||
ldap_pvt_runqueue_remove(
|
ldap_pvt_runqueue_remove(
|
||||||
struct runqueue_s* rq,
|
struct runqueue_s* rq,
|
||||||
|
@ -53,6 +53,22 @@ ldap_pvt_runqueue_insert(
|
|||||||
LDAP_STAILQ_INSERT_TAIL( &rq->task_list, entry, tnext );
|
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
|
void
|
||||||
ldap_pvt_runqueue_remove(
|
ldap_pvt_runqueue_remove(
|
||||||
struct runqueue_s* rq,
|
struct runqueue_s* rq,
|
||||||
|
Loading…
Reference in New Issue
Block a user