Comment #10 on issue 103 by [email protected]: Python thread are not
running in background
http://code.google.com/p/vim/issues/detail?id=103
Hum, I'm wondering whether the GIL is not taken too much time.
If we read the description of PyEval_InitThreads(), it says "it is
guaranteed that the lock has been created and that the calling thread has
acquired it". Calling PyGILState_Ensure() also takes the GIL. Which means
that at init time, the GIL is taken 2 times, but only released once in
if_python.c:767 (by calling Python_SaveThread()). Since the GIL is never
released, that would explain why the background threads are not allowed to
run.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php