borgend/repository.py

changeset 101
3068b0de12ee
parent 89
51cc2e25af38
child 106
a7bdc239ef62
equal deleted inserted replaced
100:b141bed9e718 101:3068b0de12ee
16 class FIFOEvent(QueuedEvent): 16 class FIFOEvent(QueuedEvent):
17 def __init__(self, cond, name=None): 17 def __init__(self, cond, name=None):
18 self._goodtogo=False 18 self._goodtogo=False
19 super().__init__(cond, name=name) 19 super().__init__(cond, name=name)
20 20
21 def __lt__(self, other): 21 def is_before(self, other, snapshot=None):
22 return False 22 return False
23 23
24 # This FIFO essentially a fancy semaphore: Each thread waits on its own 24 # This FIFO essentially a fancy semaphore: Each thread waits on its own
25 # Condition, so can also be woken up from other executing threads. 25 # Condition, so can also be woken up from other executing threads.
26 # If they are woken up by the FIFO, then a "good to go" flag is set; 26 # If they are woken up by the FIFO, then a "good to go" flag is set;

mercurial