On Tue, Aug 7, 2012 at 10:31 AM, Ben Reynwar <b...@reynwar.net> wrote:
> Hi all,
>
> The following script hangs for me about 1 time in 10 on the call to
> top_block.stop.
> Drilling in a bit, it appears to get stuck on a call to 'interrupt' of
> a boost::thread instance on line 91 of gruel/src/lib/thread_group.cc.
> Has anyone else had this problem?
>
> Cheers,
> Ben
>
> import time
> from gnuradio import gr
>
> def execute():
>     tb = gr.top_block()
>     src = gr.vector_source_c([1], True)
>     snk = gr.null_sink(gr.sizeof_gr_complex)
>     tb.connect(src, snk)
>     tb.start()
>     time.sleep(0.01)
>     print("**********About to Stop***********")
>     tb.stop()
>     print("**********Stopped***********")
>
> if __name__ == "__main__":
>     execute()

Also, if I write the same logic in straight C++ it works fine.

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to