python - Issues with spawning multiple threads -
are there issues spawning multiple threads using threading.thread?
e.g. everytime wx.spinctrl clicked? don't know of implementation enables keep thread alive , start main method multiple times.
ps: think threading.timer implicits it's not bad.
'c++'-like pseudo:
thread:
tthread::run(){ while(true){ semaphore.wait(); mainmethod(); }; }; gui:
myform::onspinctrlclick(control sender){ semaphore.signal(); }; the mainmethod() run many times click.
Comments
Post a Comment