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
88f3f307
Commit
88f3f307
authored
Jul 23, 2006
by
Andrew MacIntyre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: PyThread_start_new_thread() returns the thread ID, not a flag;
will backport.
parent
1941b1f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Python/thread_os2.h
Python/thread_os2.h
+4
-7
No files found.
Python/thread_os2.h
View file @
88f3f307
...
...
@@ -35,21 +35,18 @@ PyThread__init_thread(void)
long
PyThread_start_new_thread
(
void
(
*
func
)(
void
*
),
void
*
arg
)
{
int
aThread
;
int
success
=
0
;
int
thread_id
;
aThrea
d
=
_beginthread
(
func
,
thread_i
d
=
_beginthread
(
func
,
NULL
,
OS2_STACKSIZE
(
_pythread_stacksize
),
arg
);
if
(
aThread
==
-
1
)
{
success
=
-
1
;
fprintf
(
stderr
,
"aThread failed == %d"
,
aThread
);
if
(
thread_id
==
-
1
)
{
dprintf
((
"_beginthread failed. return %ld
\n
"
,
errno
));
}
return
success
;
return
thread_id
;
}
long
...
...
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