]> git.sur5r.net Git - openldap/blobdiff - include/lthread.h
Changed THREAD_PREEMPTIVE to PREEMPTIVE_THREADS.
[openldap] / include / lthread.h
index b79498929d97181352fb2f8035defa3016620028..cf27dbd88dd0b9b41a4703c4c3192db8f431cfd3 100644 (file)
@@ -20,8 +20,6 @@
 LDAP_BEGIN_DECL
 
 #if defined( HAVE_DCE )
-/* dce threads are preemptive */
-
 #define pthread_attr_init( a )         pthread_attr_create( a )
 #define pthread_attr_destroy( a )      pthread_attr_delete( a )
 #define pthread_attr_setdetachstate( a, b ) \
@@ -178,11 +176,16 @@ LDAP_END_DECL
  *                                 *
  ***********************************/
 
+LDAP_BEGIN_DECL
+
 #ifndef NO_THREADS
 #define NO_THREADS 1
 #endif
 
-LDAP_BEGIN_DECL
+#ifndef PREEMPTIVE_THREADS
+/* treat no threads as preemptive */
+#define PREEMPTIVE_THREADS 1
+#endif
 
 typedef void   *(*VFP)();