Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 2097:e4588404fdff legacy-trunk
Alpha OSF/1 fix
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 09 Jan 1995 17:50:47 +0000 |
| parents | d0d0a69b5ca3 |
| children | 07164d30429d |
line wrap: on
line diff
--- a/Python/thread_pthread.h Mon Jan 09 17:49:26 1995 +0000 +++ b/Python/thread_pthread.h Mon Jan 09 17:50:47 1995 +0000 @@ -93,9 +93,12 @@ long get_thread_ident _P0() { + pthread_t threadid; if (!initialized) init_thread(); - return (long) pthread_self(); + /* Jump through some hoops for Alpha OSF/1 */ + threadid = pthread_self(); + return (long) *(long *) &threadid; } static void do_exit_thread _P1(no_cleanup, int no_cleanup)
