[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] What happens when delete_head() is executed?
From: |
udadidd |
Subject: |
Re: [Discuss-gnuradio] What happens when delete_head() is executed? |
Date: |
Thu, 30 Jul 2009 13:20:25 -0700 (PDT) |
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] blks2.mod, blks2.demod, udadidd, 2009/07/13
- Re: [Discuss-gnuradio] blks2.mod, blks2.demod, Mir M. Ali, 2009/07/13
- Re: [Discuss-gnuradio] blks2.mod, blks2.demod, Eric Blossom, 2009/07/14
- Re: [Discuss-gnuradio] blks2.mod, blks2.demod, udadidd, 2009/07/18
- [Discuss-gnuradio] Packetizer and Depacketizer, udadidd, 2009/07/18
- [Discuss-gnuradio] What happens when delete_head() is executed?, udadidd, 2009/07/29
- [Discuss-gnuradio] What happens when delete_head() is executed?, udadidd, 2009/07/29
- Re: [Discuss-gnuradio] What happens when delete_head() is executed?, Mattias Kjellsson, 2009/07/30
- Re: [Discuss-gnuradio] What happens when delete_head() is executed?,
udadidd <=
- Re: [Discuss-gnuradio] What happens when delete_head() is executed?, Eric Blossom, 2009/07/30