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

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -