discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] delete_head_blocking()


From: Bastian Bloessl
Subject: Re: [Discuss-gnuradio] delete_head_blocking()
Date: Fri, 28 Jun 2013 07:50:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hi,

On 06/27/2013 11:18 PM, Shashank Gaur wrote:
I have been trying to understand delete_head_blocking() function from
gr_basic_block, but couldn't understand much clearly. Can anybody shed
some light on this.

I think this function is useful if you have a block with a message input and a stream output (i.e., the block has a work function). To avoid that the scheduler has to call the work function all the time even if there is no message to handle, you can block in the work with delete_head_blocking() until you receive a message.


Also I want to understand pair(car-cdr as well), any
info would help.

car and cdr seam to be some old school functions from Lisp times.
They are used to access the first and respectively second element of a pair. You might want to use them in conjunction with PDUs, as PDUs are pairs of a dictionary with metadata (1st element) and a blob with the actual payload (2nd element).

Best,
Bastian



reply via email to

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