Make sure the Wait on Occurence and Dequeue functions have no data dependency. Then wire the queue reference to an Enqueue function with a dummy queue element that is data dependent upon the Wait on Occurance. Wire the occurence ref to a Set Occurence function that is data dependent on the Dequeue function.
To get fancy, you can check the queue element and if it matches the dummy queue element, do not do the Set Occurence. In order to do the same with the occurence, scrap it and use a Notifier instead. That way to can distinguish between your "dummy" trip and the real thing that trips the Wait on Notifier. Daniel L. Press PrimeTest Corp.
