[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Reg : start() wait() stop() and run()
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] Reg : start() wait() stop() and run() |
Date: |
Mon, 08 Oct 2012 16:27:32 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
On 10/08/2012 04:14 PM, sumitstop wrote:
> Whats the difference between using tb.start() + tb.wait() Vs tb.run() Vs
> tb.stop + tb.wait()
>
> All the three are giving me the same result for the following code
>
> *tb.start() + tb.wait() *
>
> if __name__ == '__main__':
> tb = rx_cfile_block1(2450000000,'/home/sumit/first_app_data1')
> tb.start()
> tb.wait()
> sleep(5)
> tb = rx_cfile_block1(2460000000,'/home/sumit/first_app_data2')
> tb.start()
> tb.wait()
>
> *tb.run()*
>
> if __name__ == '__main__':
> tb = rx_cfile_block1(2450000000,'/home/sumit/first_app_data1')
> tb.run()
> sleep(5)
> tb = rx_cfile_block1(2460000000,'/home/sumit/first_app_data2')
> tb.run()
>
run = start() + wait()
> *tb.stop + tb.wait()*
>
> if __name__ == '__main__':
> tb = rx_cfile_block1(2450000000,'/home/sumit/first_app_data1')
> tb.stop()
> tb.wait()
> sleep(5)
> tb = rx_cfile_block1(2460000000,'/home/sumit/first_app_data2')
> tb.stop()
> tb.wait()
>
>
Essentially nothing should happen, threads are interrupted and joined.
Since there are no threads, both calls should return immediately.
-josh
>
>
> --
> View this message in context:
> http://gnuradio.4.n7.nabble.com/Reg-start-wait-stop-and-run-tp37916.html
> Sent from the GnuRadio mailing list archive at Nabble.com.
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>