|
On 28.03.2018 11:38, Laurent FAILLIE
wrote:
The best description of my own solution is in the slides of my speak: https://www.lua.org/wshop13/Jericke.pdf Page 18 and following. I thought that as well when I started. Currently I came to the conclusion that yields are seldom explicit in my code. Most of the time they are part of an API call. That means, my API is built in a way, that every blocking API call yields and only stops the Lua thread and not the Lua state/interpreter. I know that problem. I am using a count hook to check if a script goes rogue. This doesn't work in all cases, but I can live with some responsibility for the scripter. -- Thomas |