Problem with threads
Peter Hansen
peter at engcorp.com
Mon Jul 18 08:59:09 EDT 2005
Stephan Popp wrote:
> I've got a problem with stopping python-threads.
> I'm starting a thread with twisteds reactor.deferToThread which start a
> methodcall in a seperate thread. In this thread a swig-wrapped c++ module is
> running.
> Now I want to stop the running thread from the main thread or another one, and
> have no idea how to do it.
If this external call into the C++ module is "long running", and doesn't
itself provide a way to terminate before it's done, you can't do what
you want unless you use a separate process entirely.
-Peter
More information about the Python-list
mailing list