Embedded Python - Blocking Python Function
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Nov 14 18:20:01 EST 2007
En Wed, 14 Nov 2007 20:02:42 -0300, <andy at britishideas.com> escribió:
> The problem is that the function "Main" in the Python script can take
> up to 60 seconds to execute. How can I terminate this thread (and
> therefore the Main function in python) cleanly from the primary thread
> of my application?
Not forcibly - you need some cooperation from the Main function. Maybe
setting a global variable that Main checks periodically.
--
Gabriel Genellina
More information about the Python-list
mailing list