Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 3965:9c05ff6fb0a4 legacy-trunk
Changes necessary for AIX.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 08 Aug 1996 18:53:41 +0000 |
| parents | 07164d30429d |
| children | c277ee8c669c |
line wrap: on
line diff
--- a/Python/thread_pthread.h Thu Aug 08 18:52:59 1996 +0000 +++ b/Python/thread_pthread.h Thu Aug 08 18:53:41 1996 +0000 @@ -27,9 +27,24 @@ #include <stdlib.h> #include <pthread.h> +#ifdef _AIX + +#ifndef SCHED_BG_NP +/* SCHED_BG_NP is defined if using AIX DCE pthreads + * but it is unsupported by AIX 4 pthreads. Default + * attributes for AIX 4 pthreads equal to NULL. For + * AIX DCE pthreads they should be left unchanged. + */ +#define pthread_attr_default NULL +#define pthread_mutexattr_default NULL +#define pthread_condattr_default NULL +#endif + +#else #define pthread_attr_default ((pthread_attr_t *)0) #define pthread_mutexattr_default ((pthread_mutexattr_t *)0) #define pthread_condattr_default ((pthread_condattr_t *)0) +#endif /* A pthread mutex isn't sufficient to model the Python lock type * because, according to Draft 5 of the docs (P1003.4a/D5), both of the
