with timeout(...):
Nick Craig-Wood
nick at craig-wood.com
Thu Mar 29 12:30:04 EDT 2007
Diez B. Roggisch <deets at nospam.web.de> wrote:
> >
> > I beleive the convention is when calling an OS function which might
> > block the global interpreter lock is dropped, thus allowing other
> > python bytecode to run.
>
>
> So what? That doesn't help you, as you are single-threaded here. The
> released lock won't prevent the called C-code from taking as long as it
> wants. |And there is nothing you can do about that.
I'm assuming that the timeout function is running in a thread...
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list