Re: Call a function when a thread exits

2009-05-08 Thread Giampaolo Rodola'
On 8 Mag, 03:33, Carl Banks wrote: > On May 7, 6:12 pm, "Giampaolo Rodola'" wrote: > > > > > > > Hi, > > I'm searching for a smooth way to call a certain function when a > > thread has finished its job. > > I guess I can keep calling isAlive() in a loop and call my function > > when it returns Fa

Re: Call a function when a thread exits

2009-05-07 Thread Carl Banks
On May 7, 6:12 pm, "Giampaolo Rodola'" wrote: > Hi, > I'm searching for a smooth way to call a certain function when a > thread has finished its job. > I guess I can keep calling isAlive() in a loop and call my function > when it returns False but it's not very elegant. > Actually I'm a bit surpri

Call a function when a thread exits

2009-05-07 Thread Giampaolo Rodola'
Hi, I'm searching for a smooth way to call a certain function when a thread has finished its job. I guess I can keep calling isAlive() in a loop and call my function when it returns False but it's not very elegant. Actually I'm a bit surprised it doesn't exists an "atexit" function. Something like: