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 6567d67 commit fe21e29Copy full SHA for fe21e29
src/Python/Internal/Eval.hs
@@ -330,7 +330,6 @@ doInializePython = do
330
let fini st = atomically $ do
331
writeTVar globalPyState $ st
332
writeTVar globalPyLock $ LockUnlocked
333
-
334
pure $
335
(mask_ $ if
336
-- On multithreaded runtime create bound thread to make
@@ -448,7 +447,7 @@ runPy py
448
447
where
449
-- We check whether interpreter is initialized. Throw exception if
450
-- it wasn't. Better than segfault isn't it?
451
- go = ensurePyLock $ unsafeRunPy (ensureGIL py)
+ go = ensurePyLock $ mask_ $ unsafeRunPy (ensureGIL py)
452
453
-- | Same as 'runPy' but will make sure that code is run in python's
454
-- main thread. It's thread in which python's interpreter was
0 commit comments