Created
May 1, 2017 02:08
-
-
Save wyojustin/9d03cd4ea2d94e78252a8e1832d2ed1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class updateDriverThread(threading.Thread): | |
... cut | |
def run(self): | |
while not self.stopped(): | |
try: | |
self._wait.wait() | |
self._updating.clear() | |
self._driver._update(self._data) | |
self._data = [] | |
self._wait.clear() | |
self._reading.set() | |
self._updating.set() | |
except Exception, e: | |
print e | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment