sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

Forced yielding via instruction counting

Open sigmareaver opened this issue 2 years ago • 1 comments

Implementations of this exist. For example, haproxy, which uses Lua's debug hooks. However, I couldn't find any mention of hooks in the Sol documentation. So I had some questions.

Has anyone tried using Lua's hooks with Sol2? Are there any potential reasons to not do it (e.g. it will mess up Sol2's internal state)? Are there any plans to create/expose a Sol2 version of the Lua C API hooks?

See also:

sigmareaver avatar Dec 11 '22 23:12 sigmareaver

I'm using that functionality and it's not causing any issues for me at least.

sagamusix avatar Feb 06 '23 18:02 sagamusix