# HG changeset patch
# User Martin Geisler <[email protected]>
# Date 1229030759 -3600
# Node ID 419a2fb511aeebbd93f7058979a8a9d665a54e11
# Parent  79c3110de9b59aeb6306d0243fac16670c5a1ba2
Synchronize before starting preprocessing.

diff --git a/apps/benchmark.py b/apps/benchmark.py
--- a/apps/benchmark.py
+++ b/apps/benchmark.py
@@ -156,7 +156,15 @@
     def __init__(self, rt, operation):
         self.rt = rt
         self.operation = operation
+        self.sync_preprocess()
 
+    def sync_preprocess(self):
+        print "Synchronizing preprocessing"
+        sys.stdout.flush()
+        sync = self.rt.synchronize()
+        sync.addCallback(self.preprocess)
+
+    def preprocess(self, _):
         program_desc = {}
 
         if isinstance(self.rt, BasicActiveRuntime):
_______________________________________________
viff-patches mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-patches-viff.dk

Reply via email to