X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_rq.h;h=4fc9c072bb9e8c7deb2e0d1af7ab0d0fb48be2e5;hb=7674aa817fe673676bc90436ee2daa89c74930c3;hp=db83a8da1d82c61e09b6978ff5f7d11afd588a44;hpb=35d1bd68b955ec9a4c94fbb33765d08a8e8128ae;p=openldap
diff --git a/include/ldap_rq.h b/include/ldap_rq.h
index db83a8da1d..4fc9c072bb 100644
--- a/include/ldap_rq.h
+++ b/include/ldap_rq.h
@@ -1,6 +1,24 @@
/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software .
+ *
+ * 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 in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
+ */
-#ifdef LDAP_SYNCREPL
+#ifndef LDAP_RQ_H
+#define LDAP_RQ_H 1
+
+#include
+
+LDAP_BEGIN_DECL
typedef struct re_s {
struct timeval next_sched;
@@ -17,7 +35,7 @@ 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,
@@ -25,6 +43,13 @@ ldap_pvt_runqueue_insert(
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_pvt_runqueue_remove(
struct runqueue_s* rq,
@@ -58,7 +83,15 @@ 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 )
+ldap_pvt_runqueue_persistent_backload(
+ struct runqueue_s* rq
+);
+
+LDAP_END_DECL
+
#endif