Re: embed threaded python code, thread won't start right the way

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 23:45:28 -0300, Yue Fei <[EMAIL PROTECTED]> escribió: > I have a multi thread python code, threads can start immediately if I > run on command line, but I can get them started right the way if I call > the same code from C/C++. Only one thread at a time can execute Python

embed threaded python code, thread won't start right the way

2007-12-19 Thread Yue Fei
I have a multi thread python code, threads can start immediately if I run on command line, but I can get them started right the way if I call the same code from C/C++. test code like this: from threading import Thread import thread class testThread(Thread): def __init__ (self, id): T