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
64f9105f
Commit
64f9105f
authored
May 22, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DG/UX thread patches (Ross Andrus)
parent
b2c8ec4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
Python/thread.c
Python/thread.c
+4
-0
Python/thread_pthread.h
Python/thread_pthread.h
+8
-3
No files found.
Python/thread.c
View file @
64f9105f
...
...
@@ -49,6 +49,10 @@ extern char *getenv();
#include <unistd.h>
#endif
#ifdef __DGUX
#define _USING_POSIX4A_DRAFT6
#endif
#ifdef __sgi
#ifndef HAVE_PTHREAD_H
/* XXX Need to check in configure.in */
#undef _POSIX_THREADS
...
...
Python/thread_pthread.h
View file @
64f9105f
...
...
@@ -70,7 +70,8 @@ PERFORMANCE OF THIS SOFTWARE.
# define PY_PTHREAD_STD
#elif defined(__linux)
# define PY_PTHREAD_STD
#elif defined(__DGUX)
# define PY_PTHREAD_D6
#endif
...
...
@@ -80,7 +81,7 @@ PERFORMANCE OF THIS SOFTWARE.
# define pthread_attr_default pthread_attr_default
# define pthread_mutexattr_default pthread_mutexattr_default
# define pthread_condattr_default pthread_condattr_default
#elif defined(PY_PTHREAD_STD)
#elif defined(PY_PTHREAD_STD)
|| defined(PY_PTHREAD_D6)
# define pthread_attr_default ((pthread_attr_t *)NULL)
# define pthread_mutexattr_default ((pthread_mutexattr_t *)NULL)
# define pthread_condattr_default ((pthread_condattr_t *)NULL)
...
...
@@ -136,6 +137,10 @@ int start_new_thread _P2(func, void (*func) _P((void *)), arg, void *arg)
pthread_attr_default
,
(
pthread_startroutine_t
)
func
,
(
pthread_addr_t
)
arg
#elif defined(PY_PTHREAD_D6)
pthread_attr_default
,
(
void
*
(
*
)
_P
((
void
*
)))
func
,
arg
#elif defined(PY_PTHREAD_D7)
pthread_attr_default
,
func
,
...
...
@@ -148,7 +153,7 @@ int start_new_thread _P2(func, void (*func) _P((void *)), arg, void *arg)
);
if
(
success
>=
0
)
{
#if defined(PY_THREAD_D4) || defined(PY_PTHREAD_D7)
#if defined(PY_THREAD_D4) || defined(PY_PTHREAD_D
6) || defined(PY_PTHREAD_D
7)
pthread_detach
(
&
th
);
#elif defined(PY_PTHREAD_STD)
pthread_detach
(
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