Hi,
I am looking for a bit of clarification regarding what I need to worry about when it comes to asynch events / multi threading as a Corona developer. Since there is no notion of synchronization objects in Corona I assume this is not an issue, but still…
Let’s say I have my main lua thread running in a loop filling an array with data and then I have a timed event the wakes up every “X” msecond, checks whether the array contains some data and tries to consume it and finally removes it from the array. In languages which have a notion of threads, I would be required to protect this array from being accessed at the same time by the producer and the consumer of the data inside the array.
So the question is how is this modelled in Corona and what do I need to do as a developer? A tour on this subject would be useful along with an example.
Thanks,
ZigZapps
[import]uid: 110965 topic_id: 25847 reply_id: 325847[/import]