discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] How to stop top block?


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] How to stop top block?
Date: Thu, 20 Aug 2009 19:54:50 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Aug 20, 2009 at 10:02:35PM -0400, Yan Wang wrote:
> Hi Eric,
> Thanks for you quick answer.
> I think I've tried lock and unlock, they are also not working.

Have you looked at the examples that use lock and unlock?

> Am I doing this in the right way? Right now I've tried all these in a  
> different thread from the main thread, which has the top_block running. 

The main thread is fine.  It can't be one of the threads running a
block, which implies that you can't call lock/unlock from within a
block's work function.

> Must I do this in the same thread? I introduced top_block into the new 
> thread, and use self._top_block = top_block, then use 
> self._top_block.lock(), is that OK?
>
> Thanks for your help.
>
> Best regards,
> Yan Wang


Please use the "Reply-All" button on your mailer so that your replies
get copied to the discuss-gnuradio mailing list.  Otherwise it only
goes the sender, and then won't be available in the list archives for others.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]