repository.py

changeset 53
442c558bd632
child 54
cfcaa5f6ba33
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/repository.py	Mon Jan 22 21:07:34 2018 +0000
@@ -0,0 +1,14 @@
+#
+# Repository abstraction for queuing
+#
+
+from scheduler import TerminableThread, QueuedEvent
+
+class Repository(TerminableThread):
+    def __init__(self)
+        self.__next_event_time = None
+        self.__list = None
+        self._cond = Condition()
+        self._terminate = False
+        super().__init__(target = self.__scheduler_thread, name = 'Scheduler')
+        self.daemon=True

mercurial