Re: Message queues




What is the recommended way of flushing the queue other than reading
the posted messages in a loop? Our design requires to have waited calls
on message queues. Reading the messages in a loop will eventually block
the process on the last msgrcv call.

You could additionally wait on another resource or use a signal to prevent blocking.

Perhaps you can delete the queue and recreate it to unload the messages.

-Michael
.



Relevant Pages

  • Re: CEvent Recursive SETEVENT
    ... Try to look at message queues, and post a message for each operation ... is a thread, sat 'F1' is in its execution, and the event say "EVENT1" made ...   // iteration of while ... is doing its works inside the while loop and is not in the waiting condition, ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Determining Plant Bandwidth
    ... I'm designing a pole placement controller, with a 1kHz control loop ... I question your assertion that your plant behavior is really a straight 20dB/decade line. ... Pole placement design only works to the extent that you know your plant characteristics. ... Unfortunately it is one of the worst methods that I know of for designing robust control systems. ...
    (sci.engr.control)
  • Re: op-amps with wide open-loop bandwidth ?
    ... It appears that you belive that having an open loop BW ... gain that is now thrown away at the lower frequencies, ... *some* people used to design shit SS ... swapping out the opamps in a unit. ...
    (sci.electronics.design)
  • Re: For loop synthesis and repeated structures, any examples?
    ... I meant that the for loop IS an innefficient constuct ... in the sense that it would paralellise the hardware... ... has almost nothing to do with that design compromise. ... the multiplier, and capturing its output into the right ...
    (comp.lang.verilog)
  • Re: Problem with a script
    ... a loop there becomes impractical. ... You still have them as uniquely named array indexes... ... writing the code twice will only ... reading your entire code and parsing it in their head, ...
    (comp.lang.php)

Loading