Message queue

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.

View this message in context:
http://www.nabble.com/message-queue-tp25091208p25091208.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs