]> git.sur5r.net Git - openldap/blobdiff - include/ldap_rq.h
Make use of nanosleep/select as a sched_yeild(2) replacement
[openldap] / include / ldap_rq.h
index 4fc9c072bb9e8c7deb2e0d1af7ab0d0fb48be2e5..3e124778c9d4380129b1da9d2691e7d49f6988b5 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 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 {
@@ -40,7 +42,9 @@ ldap_pvt_runqueue_insert(
        struct runqueue_s* rq,
        time_t interval,
        ldap_pvt_thread_start_t* routine,
-       void *arg
+       void *arg,
+       char *tname,
+       char *tspec
 );
 
 LDAP_F( struct re_s* )