Concurrency

Started by mattias, April 11, 2015, 03:17:37 PM

Previous topic - Next topic
I'd like my timer scripts to avoid race conditions, but I haven't been able to find any definitive information about how lua scripts are run by the Solarus engine.

Can there be more than one thread running at any one time? Are threads ever pre-empted?

All Lua scripts run is the same thread. If several timers expires in at same cycle, I think the first one created is treated first.