diff Python/thread_pthread.h @ 9079:4d2cb212c8d1 legacy-trunk

Apparently on AIX when using gcc you need to call pthread_init() (which is not a POSIX threads call!). Reported and confirmed by Brad Howes.
author Guido van Rossum <guido@python.org>
date Thu, 10 Sep 1998 03:04:40 +0000
parents c2cbe9acfc8e
children 2340f615da8f
line wrap: on
line diff
--- a/Python/thread_pthread.h	Wed Sep 09 15:27:43 1998 +0000
+++ b/Python/thread_pthread.h	Thu Sep 10 03:04:40 1998 +0000
@@ -120,6 +120,9 @@
  */
 static void _init_thread _P0()
 {
+#if defined(_AIX) && defined(__GNUC__)
+	pthread_init();
+#endif
 }
 
 /*