Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a84d0c25
Commit
a84d0c25
authored
Feb 07, 2004
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove support for systems defining Py_PTHREAD_D[467] in
Python/thread_pthread.h.
parent
e4bf2e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
72 deletions
+0
-72
Python/thread_pthread.h
Python/thread_pthread.h
+0
-72
No files found.
Python/thread_pthread.h
View file @
a84d0c25
...
...
@@ -20,63 +20,6 @@
#include <errno.h>
#endif
/* try to determine what version of the Pthread Standard is installed.
* this is important, since all sorts of parameter types changed from
* draft to draft and there are several (incompatible) drafts in
* common use. these macros are a start, at least.
* 12 May 1997 -- david arnold <davida@pobox.com>
*/
#if defined(__ultrix) && defined(__mips) && defined(_DECTHREADS_)
/* _DECTHREADS_ is defined in cma.h which is included by pthread.h */
# define PY_PTHREAD_D4
# error Systems with PY_PTHREAD_D4 are unsupported. See README.
#elif defined(__osf__) && defined (__alpha)
/* _DECTHREADS_ is defined in cma.h which is included by pthread.h */
# if !defined(_PTHREAD_ENV_ALPHA) || defined(_PTHREAD_USE_D4) || defined(PTHREAD_USE_D4)
# define PY_PTHREAD_D4
# error Systems with PY_PTHREAD_D4 are unsupported. See README.
# else
# define PY_PTHREAD_STD
# endif
#elif defined(_AIX)
/* SCHED_BG_NP is defined if using AIX DCE pthreads
* but it is unsupported by AIX 4 pthreads. Default
* attributes for AIX 4 pthreads equal to NULL. For
* AIX DCE pthreads they should be left unchanged.
*/
# if !defined(SCHED_BG_NP)
# define PY_PTHREAD_STD
# else
# define PY_PTHREAD_D7
# error Systems with PY_PTHREAD_D7 are unsupported. See README.
# endif
#elif defined(__hpux) && defined(_DECTHREADS_)
# define PY_PTHREAD_D4
# error Systems with PY_PTHREAD_D4 are unsupported. See README.
#else
/* Default case */
# define PY_PTHREAD_STD
#endif
/* set default attribute object for different versions */
#if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D7)
#if !defined(pthread_attr_default)
# define pthread_attr_default pthread_attr_default
#endif
#if !defined(pthread_mutexattr_default)
# define pthread_mutexattr_default pthread_mutexattr_default
#endif
#if !defined(pthread_condattr_default)
# define pthread_condattr_default pthread_condattr_default
#endif
#elif defined(PY_PTHREAD_STD)
#if !defined(pthread_attr_default)
# define pthread_attr_default ((pthread_attr_t *)NULL)
#endif
...
...
@@ -86,7 +29,6 @@
#if !defined(pthread_condattr_default)
# define pthread_condattr_default ((pthread_condattr_t *)NULL)
#endif
#endif
/* Whether or not to use semaphores directly rather than emulating them with
...
...
@@ -203,15 +145,6 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
SET_THREAD_SIGMASK
(
SIG_BLOCK
,
&
newmask
,
&
oldmask
);
status
=
pthread_create
(
&
th
,
#if defined(PY_PTHREAD_D4)
pthread_attr_default
,
(
pthread_startroutine_t
)
func
,
(
pthread_addr_t
)
arg
#elif defined(PY_PTHREAD_D7)
pthread_attr_default
,
func
,
arg
#elif defined(PY_PTHREAD_STD)
#if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
&
attrs
,
#else
...
...
@@ -219,7 +152,6 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
#endif
(
void
*
(
*
)(
void
*
))
func
,
(
void
*
)
arg
#endif
);
/* Restore signal mask for original thread */
...
...
@@ -231,11 +163,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
if
(
status
!=
0
)
return
-
1
;
#if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D7)
pthread_detach
(
&
th
);
#elif defined(PY_PTHREAD_STD)
pthread_detach
(
th
);
#endif
#if SIZEOF_PTHREAD_T <= SIZEOF_LONG
return
(
long
)
th
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment