Re: [Discuss-gnuradio] What happens when delete_head() is executed?

2009-07-30 Thread Eric Blossom
On Thu, Jul 30, 2009 at 01:20:25PM -0700, udadidd wrote: > > Thanks a ton. That helped a lot! > 1) The same program now i use it with delete_head_nowait() which returns 0 > when there's nothing in the queue instead of blocking. > 2) I also wanted to see if the queue is empty and used : empty_p() f

Re: [Discuss-gnuradio] What happens when delete_head() is executed?

2009-07-30 Thread udadidd
Thanks a ton. That helped a lot! 1) The same program now i use it with delete_head_nowait() which returns 0 when there's nothing in the queue instead of blocking. 2) I also wanted to see if the queue is empty and used : empty_p() function. It gives a TRUE!! i connected : file_source --> correlat

Re: [Discuss-gnuradio] What happens when delete_head() is executed?

2009-07-30 Thread Mattias Kjellsson
udadidd wrote: > 2) Now i try to read this file back and unmake packets. But the code doesnt > do any thing at msg.delete_head(). > delete_head() is a blocking function, which blocks until there is a message in the queue. You might want to try using the non- blocking version instead? You may co

[Discuss-gnuradio] What happens when delete_head() is executed?

2009-07-29 Thread udadidd
Hi 1) i used the same code as benchmark_tx.py to make packets and saved this in a file 2) Now i try to read this file back and unmake packets. But the code doesnt do any thing at msg.delete_head(). My code is as follows: class my_top_block(gr.top_block): def __init__(self,rx_callback):

[Discuss-gnuradio] What happens when delete_head() is executed?

2009-07-29 Thread udadidd
Hi 1) i used the same code as benchmark_tx.py to make packets and saved this in a file 2) Now i try to read this file back and unmake packets. But the code doesnt do any thing at msg.delete_head(). My code is as follows: class my_top_block(gr.top_block): def __init__(self,rx_callback):