]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap_r/thr_stub.c
fix test when slapo-memberof(5) built as module (ITS#5132)
[openldap] / libraries / libldap_r / thr_stub.c
index 0f9bae6f198717f5c469230588a44b8955da3fc8..1eabb5b7a1d840447f032b0c7e0581b65434ad9c 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 
 #if defined( NO_THREADS )
 
-#include "ldap_pvt_thread.h"
+#include "ldap_pvt_thread.h" /* Get the thread interface */
+#define LDAP_THREAD_IMPLEMENTATION
+#define LDAP_THREAD_POOL_IMPLEMENTATION
+#include "ldap_thr_debug.h"  /* May rename the symbols defined below */
 
 /***********************************************************************
  *                                                                     *
@@ -195,15 +198,42 @@ int ldap_pvt_thread_pool_setkey (
        return(0);
 }
 
+void ldap_pvt_thread_pool_purgekey( void *key )
+{
+}
+
+int ldap_pvt_thread_pool_pause ( 
+       ldap_pvt_thread_pool_t *tpool )
+{
+       return(0);
+}
+
+int ldap_pvt_thread_pool_resume ( 
+       ldap_pvt_thread_pool_t *tpool )
+{
+       return(0);
+}
+
 void *ldap_pvt_thread_pool_context( )
 {
        return(NULL);
 }
 
+void ldap_pvt_thread_pool_context_reset( void *vctx )
+{
+}
+
 ldap_pvt_thread_t
 ldap_pvt_thread_self( void )
 {
        return(0);
 }
 
+ldap_pvt_thread_t
+ldap_pvt_thread_pool_tid( void *vctx )
+{
+
+       return(0);
+}
+
 #endif /* NO_THREADS */