Prev | Index | Next

Sample Push Producer continued


class GarbageProducer ... continued...:
    
    def stopProducing(self):
        self.stopped = 1

    def pauseProducing(self):
        self.paused = 1

    def resumeProducing(self):
        self.paused = 0