]> granicus.if.org Git - python/commitdiff
Apparently on AIX when using gcc you need to call pthread_init()
authorGuido van Rossum <guido@python.org>
Thu, 10 Sep 1998 03:04:40 +0000 (03:04 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Sep 1998 03:04:40 +0000 (03:04 +0000)
(which is not a POSIX threads call!).  Reported and confirmed by Brad
Howes.

Python/thread_pthread.h

index 995ef51dc52cb42cd0011b278be13fbd195f7038..24f8f4e368b391daca993f1b4c239a6fc59e400e 100644 (file)
@@ -120,6 +120,9 @@ typedef struct {
  */
 static void _init_thread _P0()
 {
+#if defined(_AIX) && defined(__GNUC__)
+       pthread_init();
+#endif
 }
 
 /*