I've just a question relating to queues............
I think i've just muddled something up in my head
I have an inspection area one - an item passes that and I enqueue the result of that inspection onto queue 1 (let's say this is the first item since it was started, so it goes @ the head of the queue)
then it moves onto inspection area two - here I use the decision from area one's queue and also work something extra out, before enqueueing that onto another queue - so as before, if this was first, it goes on the head of the queue.
then it moves to the reject area, but the chances are another item will be passing these inspection areas again by the time it gets to the reject area
as it stood, I was using the head of the queue in the reject area, which is ok
so i can enqueue the next inspection area 1 onto the queue (now it will be second)
then when I come to inspection area 2, I can't look at the head of inspection queue 1 as it may still be the old item there - so I'm a bit miffed as to how i'm gonna do it - thinking maybe two queues is a bad idea - of course, if the first item reached the reject area before the second item got there it would be fine, as when an item passes, I remove it from the queue whether it's rejected or accepted
don't know whether I should be enqueuing at the other end - or is there a way to preview an item at the back of the queue?
just had this thought before I got up and it's causing me bother - does that make sense?