Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 01f131e

Browse filesBrowse files
committed
restore behaviour of PyThreadState_Swap
in python#104208 it was inadvertently (?) changed to acquire the GIL
1 parent b01caf1 commit 01f131e
Copy full SHA for 01f131e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Python/pystate.c

Copy file name to clipboardExpand all lines: Python/pystate.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ _PyThreadState_Swap(_PyRuntimeState *runtime, PyThreadState *newts)
19141914
PyThreadState *
19151915
PyThreadState_Swap(PyThreadState *newts)
19161916
{
1917-
return _PyThreadState_Swap(&_PyRuntime, newts);
1917+
return _PyThreadState_SwapNoGIL(newts);
19181918
}
19191919

19201920

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.