def run(self):
        global interval

        while not self.stopped.isSet():
            # Get the processing state
            self.mutex.acquire()
            processed = self.processed
            self.mutex.release()
            # Create the page.
            if processed and wolfpack.isrunning():
                self.processed = False
                wolfpack.queuecode(autostatuswrapper, (None, None))
            # Wait for the next timer to pass.
            self.stopped.wait(interval)
	def run(self):
		global interval

		while not self.stopped.isSet():
			# Get the processing state
			self.mutex.acquire()
			processed = self.processed
			self.mutex.release()
			# Create the page.
			if processed and wolfpack.isrunning():
				self.processed = False
				wolfpack.queuecode( autostatuswrapper, ( None, None ) )
			# Wait for the next timer to pass.
			self.stopped.wait(interval)
Example #3
0
	def run(self):
		global interval

		while not self.stopped.isSet():
			# Get the processing state
			self.mutex.acquire()
			processed = self.processed
			self.mutex.release()

			# Only gather new data if the old has been processed
			if processed and wolfpack.isrunning():
				self.mutex.acquire()
				serials = self.serials[:] # Copy
				self.processed = False
				self.mutex.release()
				
				wolfpack.queuecode(checkPayment, (serials,))

			# Wait until canceled or the next interval
			self.stopped.wait(interval)