]> git.sur5r.net Git - openldap/blobdiff - include/ldap_rq.h
Regenerated with new OL_ARG_ENABLE
[openldap] / include / ldap_rq.h
index de6f32a936b49dbbd81edba71c910a94de911e24..4d3923b26e527b599e5cfe98396d2915fc0d7b8c 100644 (file)
@@ -1,13 +1,16 @@
 /* $OpenLDAP$ */
-/*
- * Copyright 2003 The OpenLDAP Foundation, Redwood City, California, USA
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2005 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
+ * <http://www.OpenLDAP.org/license.html>.
  */
 
 #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
 );
 
@@ -73,7 +87,8 @@ ldap_pvt_runqueue_isrunning(
 LDAP_F( void )
 ldap_pvt_runqueue_resched(
        struct runqueue_s* rq,
-       struct re_s* entry
+       struct re_s* entry,
+       int defer
 );
 
 LDAP_F( int )