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
a02f9abc
Commit
a02f9abc
authored
Apr 19, 2015
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
parents
10854d2c
defdbf25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Misc/NEWS
Misc/NEWS
+5
-0
Python/import.c
Python/import.c
+5
-1
No files found.
Misc/NEWS
View file @
a02f9abc
...
...
@@ -213,6 +213,11 @@ Tools/Demos
if
Argument
Clinic
processes
the
same
symbol
multiple
times
,
and
it
's emitted
at the end of all processing rather than immediately after the first use.
C API
-----
- Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
What'
s
New
in
Python
3.5.0
alpha
3
?
===================================
...
...
Python/import.c
View file @
a02f9abc
...
...
@@ -209,8 +209,12 @@ _PyImport_ReleaseLock(void)
void
_PyImport_ReInitLock
(
void
)
{
if
(
import_lock
!=
NULL
)
if
(
import_lock
!=
NULL
)
{
import_lock
=
PyThread_allocate_lock
();
if
(
import_lock
==
NULL
)
{
Py_FatalError
(
"PyImport_ReInitLock failed to create a new lock"
);
}
}
if
(
import_lock_level
>
1
)
{
/* Forked as a side effect of import */
long
me
=
PyThread_get_thread_ident
();
...
...
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