Nevermind. I found a better solution. I used shared memory to create
a keep-alive flag. I then use the select function with a specified
timeout, and recheck the keep-alive flag after each timeout.
Thanx for all the input.
--
http://mail.python.org/mailman/listinfo/python-list
Here's a dumbed down version of what i'm doing:
import time
import threading
class threader(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
pass
def run(self):
try:
while 1:
time.sleep(5)
except SystemExit
I also need an answer to this problem. I'm using windows. Throwing an
exception in thread B from thread A using a callback function.
The function runs, but the thread never actually catches the exception.
The try/except block is in the run() method (over-riden from the
Thread class)
--
http:/