Lines Matching defs:readers
71 readers = 0 # derived class should set
85 readers_per_writer=self.readers//self.writers
87 self.assertEqual(self.readers,self.writers*readers_per_writer)
89 readers = []
91 for x in xrange(self.readers):
100 readers.append(rt)
106 b=readers[readers_per_writer*x:readers_per_writer*(x+1)]
122 for t in readers:
125 def writerThread(self, d, keys, readers):
134 count=len(keys)//len(readers)
145 readers.pop().start()
180 readers = 10
187 readers = 10
196 readers = 10
213 readers_per_writer=self.readers//self.writers
215 self.assertEqual(self.readers,self.writers*readers_per_writer)
218 readers = []
219 for x in xrange(self.readers):
228 readers.append(rt)
234 b=readers[readers_per_writer*x:readers_per_writer*(x+1)]
250 for t in readers:
253 def writerThread(self, d, keys, readers):
261 count=len(keys)//len(readers)
273 readers.pop().start()
320 readers = 0
339 readers_per_writer=self.readers//self.writers
341 self.assertEqual(self.readers,self.writers*readers_per_writer)
344 readers=[]
345 for x in xrange(self.readers):
354 readers.append(rt)
359 b=readers[readers_per_writer*x:readers_per_writer*(x+1)]
382 for t in readers:
388 def writerThread(self, d, keys, readers):
394 count=len(keys)//len(readers)
406 readers.pop().start()
471 readers = 10
477 readers = 10
483 readers = 10
490 readers = 10