iwl wrote: > what is the nThreadId-Parameter of PyThreadState_SetAsyncExc? > > I try to implement a Terminate-Button in my C-Prog for my > embedded Python, but its hard to find an example how to > stop an interpreter running in an thread. > > I found no other Python C-App-Func returning such a parameter. >
Use the "thread_id" member of the PyThreadState object: PyThreadState *tstate; PyThreadState_SetAsyncExc(tstate->thread_id,exc); -Karl -- http://mail.python.org/mailman/listinfo/python-list