[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] A basic but critical problem in stopping of pytho
From: |
Tom Rondeau |
Subject: |
Re: [Discuss-gnuradio] A basic but critical problem in stopping of python code |
Date: |
Wed, 3 Jul 2013 10:59:36 -0400 |
On Sun, Jun 23, 2013 at 3:29 AM, bojiechen <address@hidden> wrote:
> When run a python script file, as we know main function will be run first.
> We send the class to a object "tb",for instance,we use tb.start or tb.run.
>
> but if we want to stop a flawgraph and reconfiguration.we must use tb.stop
> with tb.wait and then restart tb.when I use this ,the tb.wait() can not
>
> finish . I don`t know why. even I use tb.lock() and tb.unlock() it doesn`t
If you are reconfiguring the flowgraph, just use:
tb.lock()
(Put your disconnect and connect lines here)
tb.unlock()
That should be all.
> work too. I take this test in tunnel.py.
Don't use tunnel.py. It's probably not completing something and
staying in a deadlock state.
Tom
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Discuss-gnuradio] A basic but critical problem in stopping of python code,
Tom Rondeau <=