discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] message queue


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] message queue
Date: Sat, 22 Aug 2009 13:42:57 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Aug 21, 2009 at 11:59:41PM -0700, shesh wrote:
> 
> hi, 
>    i am working on a spectrum sense code. in the following statement
>                         self.msgq = gr.msg_queue(16) 
>     is there any significance for the number 16?does changing this number
> affect the performance of the code?
>     kindly help.

It sets the limit to the number of messages in the queue.  0 means no limit.
If the queue is full, an attempt to add a message will block until
there's room.  (Note also that gr_message_sink also has an option
that will have it drop messages if the message queue is full.)

Eric




reply via email to

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