summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-09 17:50:47 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-09 17:50:47 (GMT)
commit2565bff40a6d7d06c29b7d7a7a580f78b1d4f169 (patch)
tree4e5fac1329f5e3d49a312aad38180de4fd1caafd /Python/thread_pthread.h
parent37431fbbd03c4130b567f1cca8cfa4134915836a (diff)
downloadcpython-2565bff40a6d7d06c29b7d7a7a580f78b1d4f169.zip
cpython-2565bff40a6d7d06c29b7d7a7a580f78b1d4f169.tar.gz
cpython-2565bff40a6d7d06c29b7d7a7a580f78b1d4f169.tar.bz2
Alpha OSF/1 fix
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 94b9182..a4222cf 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -93,9 +93,12 @@ int start_new_thread _P2(func, void (*func) _P((void *)), arg, void *arg)
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)