FEM: source typos

This commit is contained in:
Unknown
2017-12-31 12:22:16 +01:00
committed by wmayer
parent 345c517840
commit 434cad529e
2 changed files with 14 additions and 14 deletions

View File

@@ -39,8 +39,8 @@ class Task(object):
self.report = None
self.signalStarting = set()
self.signalStarted = set()
self.signalStoping = set()
self.signalStoped = set()
self.signalStopping = set()
self.signalStopped = set()
self.signalAbort = set()
self.signalStatus = set()
self.signalStatusCleared = set()
@@ -51,10 +51,10 @@ class Task(object):
self._failed = False
self._status = []
def stoping():
def stopping():
self.stopTime = time.time()
self.running = False
self.signalStoping.add(stoping)
self.signalStopping.add(stopping)
@property
def time(self):
@@ -139,8 +139,8 @@ class Thread(Task):
def _attachObserver(self):
def waitForStop():
self._thread.join()
signal.notify(self.signalStoping)
signal.notify(self.signalStoped)
signal.notify(self.signalStopping)
signal.notify(self.signalStopped)
thread = threading.Thread(target=waitForStop)
thread.daemon = True
thread.start()