]> git.sur5r.net Git - openldap/blobdiff - include/ldap_pvt_thread.h
non-root add/delete of entries rooted at '' checks children write permission (forward...
[openldap] / include / ldap_pvt_thread.h
index 5b65406731bc163586ff72dbcf2ad03a3758e5b3..de9a07ce059bc7f62ca72d8902d1f78222eee53c 100644 (file)
@@ -1,12 +1,13 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms 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.
+ * 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.
  */
 /* ldap_pvt_thread.h - ldap threads header file NG */
 
@@ -40,6 +41,11 @@ ldap_pvt_thread_set_concurrency LDAP_P(( int ));
 #define LDAP_PVT_THREAD_CREATE_JOINABLE 0
 #define LDAP_PVT_THREAD_CREATE_DETACHED 1
 
+#ifndef LDAP_PVT_THREAD_STACK_SIZE
+       /* LARGE stack */
+#define LDAP_PVT_THREAD_STACK_SIZE     (16*1024*1024)
+#endif
+
 LDAP_F( int ) 
 ldap_pvt_thread_create LDAP_P((
        ldap_pvt_thread_t * thread, 
@@ -138,7 +144,7 @@ typedef ldap_int_thread_pool_t ldap_pvt_thread_pool_t;
 LDAP_F( int )
 ldap_pvt_thread_pool_init LDAP_P((
        ldap_pvt_thread_pool_t *pool_out,
-       int max_concurrency,
+       int max_threads,
        int max_pending ));
 
 LDAP_F( int )
@@ -147,6 +153,11 @@ ldap_pvt_thread_pool_submit LDAP_P((
        void *(*start_routine)( void * ),
        void *arg ));
 
+LDAP_F( int )
+ldap_pvt_thread_pool_maxthreads LDAP_P((
+       ldap_pvt_thread_pool_t *pool,
+       int max_threads ));
+
 LDAP_F( int )
 ldap_pvt_thread_pool_backload LDAP_P((
        ldap_pvt_thread_pool_t *pool ));