Merged r6171:6186 from jcorgan/fg into trunk.
[debian/gnuradio] / gnuradio-examples / python / hier / digital / benchmark_loopback.py
index a98d1cdfb40e2bbcc8136e2dc323c04f65f6456b..31dfb991ba1e5aaa555d58883a1ee4ece73c2411 100755 (executable)
@@ -155,10 +155,7 @@ def main():
         
     # Create an instance of a hierarchical block
     top_block = my_graph(mods[options.modulation], demods[options.modulation], rx_callback, options)
-    
-    # Create an instance of a runtime, passing it the top block
-    runtime = gr.runtime(top_block)
-    runtime.start()
+    top_block.start()
 
     # generate and send packets
     nbytes = int(1e6 * options.megabytes)
@@ -175,7 +172,7 @@ def main():
         
     send_pkt(eof=True)
 
-    runtime.wait()
+    top_block.wait()
     
 if __name__ == '__main__':
     try: