X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_rq.h;h=1e3aea16f161a9dbd23eb52b8a9720c3e3854fc9;hb=453d3c0710619cae48c7a13aaf045467b1ed124c;hp=b2f0b43090c43e223640183e6954955dfdb12e8f;hpb=45c42630dbe026153f2d07c06982b11dcde7a428;p=openldap diff --git a/include/ldap_rq.h b/include/ldap_rq.h index b2f0b43090..1e3aea16f1 100644 --- a/include/ldap_rq.h +++ b/include/ldap_rq.h @@ -1,13 +1,16 @@ /* $OpenLDAP$ */ -/* - * Copyright 2003 The OpenLDAP Foundation, Redwood City, California, USA +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2006 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP - * Public License. A copy of this license is available at - * http://www.OpenLDAP.org/license.html or in file LICENSE in the - * top-level directory of the distribution. + * Public License. + * + * A copy of this license is available in file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . */ #ifndef LDAP_RQ_H @@ -24,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 { @@ -32,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 ); @@ -49,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 )