Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
56dd54f6
Commit
56dd54f6
authored
Oct 22, 1998
by
Kurt Zeilenga
Browse files
Changed THREAD_PREEMPTIVE to PREEMPTIVE_THREADS.
Updated portable.h.nt. Still having problems with tests.
parent
8bf1d472
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
acconfig.h
View file @
56dd54f6
...
...
@@ -104,6 +104,9 @@
/* define this if you want no thread support */
#undef NO_THREADS
/* define this if the thread package is preemptive */
#undef PREEMPTIVE_THREADS
/* define this for ACL Group support */
#undef SLAPD_ACLGROUPS
...
...
@@ -131,8 +134,5 @@
/* define this to use SLAPD shell backend */
#undef SLAPD_SHELL
/* define this if the thread package is preemptive */
#undef THREAD_PREEMPTIVE
/* Leave that blank line there!! Autoheader needs it. */
configure
View file @
56dd54f6
This diff is collapsed.
Click to expand it.
configure.in
View file @
56dd54f6
...
...
@@ -485,7 +485,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
fi
if test $ol_with_preemptive = yes ; then
AC_DEFINE(
THREAD_
PREEMPTIVE,1)
AC_DEFINE(PREEMPTIVE
_THREADS
,1)
fi
if test $ol_with_threads = manual ; then
...
...
@@ -514,6 +514,7 @@ if test $ol_link_threads = no ; then
fi
AC_DEFINE(NO_THREADS,1)
AC_DEFINE(PREEMPTIVE_THREADS,1)
LTHREAD_LIBS=""
fi
...
...
include/lthread.h
View file @
56dd54f6
...
...
@@ -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
)();
...
...
include/portable.h.in
View file @
56dd54f6
...
...
@@ -191,6 +191,9 @@ is provided ``as is'' without express or implied warranty.
/* define this if you want no thread support */
#undef NO_THREADS
/* define this if the thread package is preemptive */
#undef PREEMPTIVE_THREADS
/* define this for ACL Group support */
#undef SLAPD_ACLGROUPS
...
...
@@ -218,9 +221,6 @@ is provided ``as is'' without express or implied warranty.
/* define this to use SLAPD shell backend */
#undef SLAPD_SHELL
/* define this if the thread package is preemptive */
#undef THREAD_PREEMPTIVE
/* Define if you have the bcopy function. */
#undef HAVE_BCOPY
...
...
include/portable.h.nt
View file @
56dd54f6
...
...
@@ -48,6 +48,11 @@ typedef char * caddr_t;
/* we have <io.h> */
#define HAVE_IO_H 1
/* we have <process.h> */
#define HAVE_PROCESS_H 1
/* --------------------------------------------------- */
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
...
...
@@ -120,9 +125,8 @@ typedef char * caddr_t;
/* Define to `int' if <sys/types.h> doesn't define. */
#define uid_t long
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef WORDS_BIGENDIAN */
/* define this if toupper() requires tolower() */
#define C_UPPER_LOWER
/* define this if sys_errlist is not defined in stdio.h or errno.h */
/* #undef DECL_SYS_ERRLIST */
...
...
@@ -151,9 +155,6 @@ typedef char * caddr_t;
/* define if you have Sun LWP (SunOS style) */
/* #undef HAVE_LWP */
/* define if you have Sun LWP (Solaris style) */
/* #undef HAVE_LWP_THR */
/* define if you have -lncurses */
/* #undef HAVE_NCURSES */
...
...
@@ -178,6 +179,9 @@ typedef char * caddr_t;
/* define if you have -ltermcap */
/* #undef HAVE_TERMCAP */
/* define if you have Solaris LWP Threads */
/* #undef HAVE_THR */
/* define this for connectionless LDAP support */
/* #undef LDAP_CONNECTIONLESS */
...
...
@@ -185,7 +189,7 @@ typedef char * caddr_t;
#define LDAP_DEBUG 1
/* define this for LDAP DNS support */
/* #undef
LDAP_DNS
*/
#define
LDAP_DNS
1
/* define this to remove -lldap cache support */
/* #undef LDAP_NOCACHE */
...
...
@@ -194,7 +198,7 @@ typedef char * caddr_t;
#define LDAP_REFERRALS 1
/* define this for LDAP User Interface support */
#define
LDAP_LIBUI
1
/* #undef
LDAP_LIBUI
*/
/* define this to use DBBTREE w/ LDBM backend */
/* #undef LDBM_USE_DBBTREE */
...
...
@@ -208,6 +212,9 @@ typedef char * caddr_t;
/* define this if you want no thread support */
#define NO_THREADS 1
/* define this if the thread package is preemptive */
#define PREEMPTIVE_THREADS 1
/* define this for ACL Group support */
#define SLAPD_ACLGROUPS
...
...
@@ -235,9 +242,6 @@ typedef char * caddr_t;
/* define this to use SLAPD shell backend */
/* #undef SLAPD_SHELL */
/* define this if the thread package is preemptive */
/* #undef THREAD_PREEMPTIVE */
/* Define if you have the bcopy function. */
/* #undef HAVE_BCOPY */
...
...
@@ -265,6 +269,9 @@ typedef char * caddr_t;
/* Define if you have the memmove function. */
#define HAVE_MEMMOVE 1
/* Define if you have the mkstemp function. */
/* #undef HAVE_MKSTEMP */
/* Define if you have the mktime function. */
#define HAVE_MKTIME 1
...
...
servers/slapd/daemon.c
View file @
56dd54f6
...
...
@@ -212,7 +212,7 @@ slapd_daemon(
Debug
(
LDAP_DEBUG_CONNS
,
"before select active_threads %d
\n
"
,
active_threads
,
0
,
0
);
#if
def
ined(THREAD_PREEMPTIVE) || defined(NO
_THREADS
)
#ifdef
PREEMPTIVE
_THREADS
tvp
=
NULL
;
#else
tvp
=
active_threads
?
&
zero
:
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment