removing old files

This commit is contained in:
Erik Kristensen 2010-10-21 20:53:46 -04:00
parent d812487d23
commit eb3c47dba5
1 changed files with 0 additions and 23 deletions

View File

@ -1,23 +0,0 @@
import threading
class Reactor(threading.Thread):
def __init__(self):
print "reactor.init"
self._stopEvent = threading.Event()
self._sleepPeriod = 4
threading.Thread.__init__(self, name="Reactor")
def __del__(self):
print "reactor.del"
def run(self):
print "reactor.run"
print "%s starts" % (self.getName(),)
while not self._stopEvent.isSet():
threads = threading.enumerate
## Do Stuff Here
self._stopEvent.wait(self._sleepPeriod)
def stop(self,timeout=None):
self._stopEvent.set()
threading.Thread.join(self,timeout)