04-29-2011 10:30 AM
I'd like to know if it's possible pausing for loop in a fixed step till en event occurs.
I need to use for loop index to indexing some vector's data, but the steps in for loop must be exectuted only if precise condition occurs.
thank you very much for possible solutions
Francesco
04-29-2011 11:11 AM
Without seeing any code, it is hard to recommend what to do.
You probably want a State Machine architecture so that you can stay in a certain state of a while loop, then move on to the next step (state) when your condition is met.
You could also use event structures. You could also use notifiers or occurrences to hold the execution of your loop until the notifier is written to or occurrence executed in a parallel loop of your code.