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
f23339a7
Commit
f23339a7
authored
Jul 23, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 12620: Make pendingbusy flag static to Py_MakePendingCalls().
parent
d2d7a3b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Python/ceval.c
Python/ceval.c
+4
-4
No files found.
Python/ceval.c
View file @
f23339a7
...
...
@@ -491,7 +491,6 @@ static struct {
}
pendingcalls
[
NPENDINGCALLS
];
static
int
pendingfirst
=
0
;
static
int
pendinglast
=
0
;
static
char
pendingbusy
=
0
;
int
Py_AddPendingCall
(
int
(
*
func
)(
void
*
),
void
*
arg
)
...
...
@@ -538,6 +537,7 @@ Py_AddPendingCall(int (*func)(void *), void *arg)
int
Py_MakePendingCalls
(
void
)
{
static
int
busy
=
0
;
int
i
;
int
r
=
0
;
...
...
@@ -552,9 +552,9 @@ Py_MakePendingCalls(void)
if
(
main_thread
&&
PyThread_get_thread_ident
()
!=
main_thread
)
return
0
;
/* don't perform recursive pending calls */
if
(
pending
busy
)
if
(
busy
)
return
0
;
pending
busy
=
1
;
busy
=
1
;
/* perform a bounded number of calls, in case of recursion */
for
(
i
=
0
;
i
<
NPENDINGCALLS
;
i
++
)
{
int
j
;
...
...
@@ -583,7 +583,7 @@ Py_MakePendingCalls(void)
if
(
r
)
break
;
}
pending
busy
=
0
;
busy
=
0
;
return
r
;
}
...
...
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