示例#1
0
 def snapshot(self):
     with self.lock:
         return Snapshot(val for _, val in self.values)
示例#2
0
 def setUp(self):
     self.snapshot = Snapshot([5, 1, 2, 3, 4])
示例#3
0
 def snapshot(self):
     return Snapshot(self.values[0:self.size()])
示例#4
0
 def snapshot(self):
     with self.lock:
         return Snapshot(list(self.values.values()))