The default timeout of a queue write primitive is set to -1 right now, which means that it waits forever to insert an element. I am sure there are intstances where this is the right behavior, but for virtually all the cases that I have come across, I don't ever want that primitive to hold up operation of my code. Whether running in RT or on a Windows machine, simply mimicking the behavior of the RT FIFO primitives would seem to be much better. If for some reason your queue has filled up (and you have set a size limit), you can wind up with a hung application and no real way to fix it. Right now, I have to remind myself to go in and set the timeout to 0, which works but can be tedious.
So, I vote to change the default timeout to 0 ms. Not sure if it makes sense on the queue read or not, but for sure on the write side. Thoughts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.