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 --> correlator --> framer_sink

So if my queue is empty, where is the data that i am reading, going? 




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 compile the documentation (if it isn't done per default) which
per default locates itself in
/usr/local/share/doc/gnuradio-X.Xsvn/html/index.html

Cheers!
//Mattias


-- 
View this message in context: 
http://www.nabble.com/Packet-mod-demod-race-condition--tp12660275p24746639.html
Sent from the GnuRadio mailing list archive at Nabble.com.



_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to