diff options
author | Jesus Cea <jcea@jcea.es> | 2011-03-14 16:36:54 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2011-03-14 16:36:54 (GMT) |
commit | 736e7fc0f6d1242b58ee91708873d14ed7856b77 (patch) | |
tree | 81a5d54882e019409471a3f9d26047a12006ca15 /Python/thread_pthread.h | |
parent | 3eb2347c8ce29ac76de4c2e4f98c6ecfa3b69e01 (diff) | |
download | cpython-736e7fc0f6d1242b58ee91708873d14ed7856b77.zip cpython-736e7fc0f6d1242b58ee91708873d14ed7856b77.tar.gz cpython-736e7fc0f6d1242b58ee91708873d14ed7856b77.tar.bz2 |
Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r-- | Python/thread_pthread.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index ffc791c..7d36b92 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -228,8 +228,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg) hosed" because: - It does not guarantee the promise that a non-zero integer is returned. - The cast to long is inherently unsafe. - - It is not clear that the 'volatile' (for AIX?) and ugly casting in the - latter return statement (for Alpha OSF/1) are any longer necessary. + - It is not clear that the 'volatile' (for AIX?) are any longer necessary. */ long PyThread_get_thread_ident(void) @@ -237,13 +236,8 @@ PyThread_get_thread_ident(void) volatile pthread_t threadid; if (!initialized) PyThread_init_thread(); - /* Jump through some hoops for Alpha OSF/1 */ threadid = pthread_self(); -#if SIZEOF_PTHREAD_T <= SIZEOF_LONG return (long) threadid; -#else - return (long) *(long *) &threadid; -#endif } void |