/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
LDAP_STAILQ_ENTRY(re_s) rnext;
ldap_pvt_thread_start_t *routine;
void *arg;
+ char *tname;
+ char *tspec;
} re_t;
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
);
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 )