def get_request_backlog(self): self.dllock.acquire() try: return DownloadConfigInterface.get_request_backlog(self) finally: self.dllock.release()