I have a Delphi application that is sending commands serially to a connected device. I am using TQueue to hold the commands that I want to send. There are instances where the user may click a button on the screen and I want to be able to push a new command to the top of the queue so it comes off first. Instead of the typical Queue (First In First Out) behavior. Does anyone have any ideas on what I need to do in order to get this behavior? Does anyone have any code examples?
Thanks!
Thanks!