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 _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
