viff

changeset 828:fe3bcd629827

Simplified code.
author Martin Geisler <mg@daimi.au.dk>
date Sun, 13 Jul 2008 16:35:00 +0200
parents 58c1a0dfbcfc
children 405569e5cb96
files apps/benchmark.py
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark.py	Sun Jul 13 16:28:15 2008 +0200
     1.2 +++ b/apps/benchmark.py	Sun Jul 13 16:35:00 2008 +0200
     1.3 @@ -192,20 +192,13 @@
     1.4          raise NotImplemented("Override this abstract method in a sub class.")
     1.5  
     1.6      def finished(self, _):
     1.7 -        print "Finished, synchronizing shutdown."
     1.8          sys.stdout.flush()
     1.9  
    1.10          if self.rt._needed_data:
    1.11              print "Missing pre-processed data:"
    1.12              pprint(self.rt._needed_data)
    1.13  
    1.14 -        sync = self.rt.synchronize()
    1.15 -        sync.addCallback(lambda _: reactor.callLater(5, self.shutdown, None))
    1.16 -
    1.17 -    def shutdown(self, _):
    1.18 -        print "Shutdown."
    1.19          self.rt.shutdown()
    1.20 -        print "Stopped VIFF Runtime."
    1.21  
    1.22  # This class implements a benchmark where run_test executes all
    1.23  # operations in parallel.