Global semaphore
Posted: 23 Feb 2015 20:55
Hello,
I have several flows which may run simultaneously. Each of these flows is trying to manipulate the value of a single global variable. I can see that they are "stepping on each other's toes" by overwriting each other's changes.
I would like to set up some sort of semaphore so that I can be reasonably assured that only one of the flows can update the global variable at a time. I can certainly code something up in a script, but I was wondering if android has something available that Automagic would be able to access. Or if Automagic itself has some way of halting other executing flows until a condition is met.
Does anything like this exist?
Clive
I have several flows which may run simultaneously. Each of these flows is trying to manipulate the value of a single global variable. I can see that they are "stepping on each other's toes" by overwriting each other's changes.
I would like to set up some sort of semaphore so that I can be reasonably assured that only one of the flows can update the global variable at a time. I can certainly code something up in a script, but I was wondering if android has something available that Automagic would be able to access. Or if Automagic itself has some way of halting other executing flows until a condition is met.
Does anything like this exist?
Clive