We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9347052 commit 4b931d4Copy full SHA for 4b931d4
src/Python/Internal/Eval.hs
@@ -171,7 +171,9 @@ finalizePython
171
| rtsSupportsBoundThreads = runInBoundThread $ do
172
[CU.exp| void { PyGILState_Ensure() } |]
173
mask_ doFinalizePython
174
- | otherwise = mask_ doFinalizePython
+ | otherwise = mask_ $ do
175
+ [CU.exp| void { PyGILState_Ensure() } |]
176
+ doFinalizePython
177
178
-- | Bracket which ensures that action is executed with properly
179
-- initialized interpreter
0 commit comments