"SPRINTER" <[EMAIL PROTECTED]> wrote: >May be someone knows the way to join different synchronization methods ? > >In other words I would like to use the queue and occurence with one while >loop. Desired effect is that while loop waits for one of these events >(element in queue or occurence). >In my case, dequeue function was being blocked by the wait occurence >function.
Event controlled objects in a data flow language will have to wait for both objects to return before the code can continue. Not much to change about that. You have two options. 1) Separate those two in different loops. Let them do whatever they need to do. Eventually communicate the event from one loop (occurrence) to the other loop (queue) if the code to perform for the occurrence is the same as for one of your queue events. 2) Even better: instead of using an occurrence generate directly the according queue command element in the place you would normally trigger the occurrence. Or add a specific "dummy" occur queue command to send to the queue from where you want to trigger the occurrence. Queues really are just very sophisticated occurrences with queueing of the events as well as data storage with each event. So there is no problem in using a queue as an occurrence at all here other than the queue being a little more expensive in resource terms but as it is there already anyhow you really loose nothing. Rolf Kalbermatter CIT Engineering Nederland BV tel: +31 (070) 415 9190 Treubstraat 7H fax: +31 (070) 415 9191 2288 EG Rijswijk http://www.citengineering.com Netherlands mailto:[EMAIL PROTECTED]
