diff options
author | Neale Ferguson <neale@VMA.TABNSW.COM.AU> | 1998-10-28 02:44:42 +1300 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-27 08:03:05 +0000 |
commit | 1fff601ee71b8b7212d98718b9e522d5caf2da7f (patch) | |
tree | ccf5705baf68eb64cbcd12b57a748b1eedcea1dc /thread.h | |
parent | 7f3d1cf17f00f843a4ab0c805e58fa10c222716a (diff) | |
download | perl-1fff601ee71b8b7212d98718b9e522d5caf2da7f.tar.gz |
ATTR_JOINABLE logic, based on (private email)
Subject: Some little diffs
Message-ID: <36350969.DA33E7B4@mailbox.tabnsw.com.au>
p4raw-id: //depot/cfgperl@2096
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -128,16 +128,14 @@ struct perl_thread *getTHR _((void)); # endif #endif -#ifdef PTHREADS_CREATED_JOINABLE +#if !defined(ATTR_JOINABLE) && defined(PTHREAD_CREATE_JOINABLE) # define ATTR_JOINABLE PTHREAD_CREATE_JOINABLE -#else -# ifdef PTHREAD_CREATE_UNDETACHED -# define ATTR_JOINABLE PTHREAD_CREATE_UNDETACHED -# else -# ifdef __UNDETACHED -# define ATTR_JOINABLE __UNDETACHED -# endif -# endif +#endif +#if !defined(ATTR_JOINABLE) && defined(PTHREAD_CREATE_UNDETACHED) +# define ATTR_JOINABLE PTHREAD_CREATE_UNDETACHED +#endif +#if !defined(ATTR_JOINABLE) && defined(__UNDETACHED) +# define ATTR_JOINABLE __UNDETACHED #endif #ifndef MUTEX_INIT |