X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_rq.h;h=17d62f946d2335a3d795a11c82ff48448deb4cb3;hb=760f527af2d97f3aa744222e10905d356ef4fe06;hp=f92f42381000dd6d11e8e8d7643be9a33a888bb2;hpb=159de0f1359459371c590ac770cc30edbade58d5;p=openldap diff --git a/include/ldap_rq.h b/include/ldap_rq.h index f92f423810..17d62f946d 100644 --- a/include/ldap_rq.h +++ b/include/ldap_rq.h @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2003 The OpenLDAP Foundation. + * Copyright 1998-2008 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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 { @@ -35,11 +37,20 @@ typedef struct runqueue_s { ldap_pvt_thread_mutex_t rq_mutex; } runqueue_t; -LDAP_F( void ) +LDAP_F( struct re_s* ) ldap_pvt_runqueue_insert( struct runqueue_s* rq, time_t interval, ldap_pvt_thread_start_t* routine, + void *arg, + char *tname, + char *tspec +); + +LDAP_F( struct re_s* ) +ldap_pvt_runqueue_find( + struct runqueue_s* rq, + ldap_pvt_thread_start_t* routine, void *arg ); @@ -52,7 +63,7 @@ ldap_pvt_runqueue_remove( LDAP_F( struct re_s* ) ldap_pvt_runqueue_next_sched( struct runqueue_s* rq, - struct timeval** next_run + struct timeval* next_run ); LDAP_F( void )