diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-12 19:55:58 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-12 19:55:58 +0000 |
commit | 6b2adf1cbf97b8ecd8afd63e30820792a30d6d70 (patch) | |
tree | 74bdcc96db1ca5951935e4cd60f2ac98248ce496 /ace | |
parent | 1b1d622b95e1cfc6eb9683ed2229cccad0e5ce86 (diff) | |
download | ATCD-6b2adf1cbf97b8ecd8afd63e30820792a30d6d70.tar.gz |
wrapped thread-related defines with "#ifdef _REENTRANT"
Diffstat (limited to 'ace')
-rw-r--r-- | ace/config-sunos5.5.h | 73 |
1 files changed, 37 insertions, 36 deletions
diff --git a/ace/config-sunos5.5.h b/ace/config-sunos5.5.h index 7b2df8c54f4..b335332988e 100644 --- a/ace/config-sunos5.5.h +++ b/ace/config-sunos5.5.h @@ -184,44 +184,45 @@ // Platform supports XPG4 wide characters #define ACE_HAS_XPG4_MULTIBYTE_CHAR -/* Comment out the following defines if you want to disable threading. */ -// Compile using multi-thread libraries. -#if !defined (ACE_MT_SAFE) -# define ACE_MT_SAFE 1 -#endif - -// Platform supports threads. -#define ACE_HAS_THREADS - -// Platform supports POSIX pthreads *and* Solaris threads! If you -// only want to use POSIX pthreads just comment out ACE_HAS_STHREADS. -// Or, add -D_POSIX_PTHREAD_SEMANTICS to your CFLAGS. -#if defined (_POSIX_PTHREAD_SEMANTICS) -# define ACE_HAS_PTHREADS_1003_DOT_1C -#else /* ! _POSIX_PTHREAD_SEMANTICS */ -# define ACE_HAS_STHREADS -#endif /* ! _POSIX_PTHREAD_SEMANTICS */ - -#define ACE_HAS_PTHREADS -// . . . but only supports SCHED_OTHER scheduling policy -#define ACE_HAS_ONLY_SCHED_OTHER -#define ACE_HAS_SIGWAIT - -// Compiler/platform has thread-specific storage -#define ACE_HAS_THREAD_SPECIFIC_STORAGE - -// Platform supports reentrant functions (i.e., all the POSIX *_r functions). -#define ACE_HAS_REENTRANT_FUNCTIONS - -/* End of threading #defines. */ - -#define ACE_HAS_PRIOCNTL -#define ACE_NEEDS_LWP_PRIO_SET +#if defined (_REENTRANT) + /* Comment out the following defines if you want to disable threading. */ + // Compile using multi-thread libraries. +# if !defined (ACE_MT_SAFE) +# define ACE_MT_SAFE 1 +# endif + +# define ACE_HAS_THREADS + + // Platform supports POSIX pthreads *and* Solaris threads! If you + // only want to use POSIX pthreads just comment out ACE_HAS_STHREADS. + // Or, add -D_POSIX_PTHREAD_SEMANTICS to your CFLAGS. +# if defined (_POSIX_PTHREAD_SEMANTICS) +# define ACE_HAS_PTHREADS_1003_DOT_1C +# else /* ! _POSIX_PTHREAD_SEMANTICS */ +# define ACE_HAS_STHREADS +# endif /* ! _POSIX_PTHREAD_SEMANTICS */ + +# define ACE_HAS_PTHREADS + // . . . but only supports SCHED_OTHER scheduling policy +# define ACE_HAS_ONLY_SCHED_OTHER +# define ACE_HAS_SIGWAIT + + // Compiler/platform has thread-specific storage +# define ACE_HAS_THREAD_SPECIFIC_STORAGE + + // Platform supports reentrant functions (i.e., all the POSIX *_r functions). +# define ACE_HAS_REENTRANT_FUNCTIONS + +# define ACE_HAS_PRIOCNTL +# define ACE_NEEDS_LWP_PRIO_SET +# define ACE_HAS_PTHREAD_SIGMASK +# define ACE_HAS_THR_YIELD +# define ACE_LACKS_PTHREAD_YIELD + + /* End of threading #defines */ +#endif /* _REENTRANT */ #define ACE_HAS_ONEARG_SIGWAIT -#define ACE_HAS_PTHREAD_SIGMASK -#define ACE_HAS_THR_YIELD -#define ACE_LACKS_PTHREAD_YIELD // Platform supports ACE_TLI timod STREAMS module. #define ACE_HAS_TIMOD_H |