I want to release the GIL

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Oct 21 05:09:24 EDT 2008


En Tue, 21 Oct 2008 04:58:00 -0200, Piotr Sobolewski  
<piotr_sobolewski at o2.pl> escribió:

> But what about my main question? Is it possible to release GIL without
> sleeping? I know that in this example situation I can achieve my goals
> without that - I can just move sleep outside of locked block. But I
> just want to know it for future - can I just do something like
> thread.gil_release()?

No, you can't release the GIL *and* continue executing Python code.

-- 
Gabriel Genellina




More information about the Python-list mailing list