hoelzro / inline-lua

Perl extension for embedding Lua scripts into Perl code
4 stars 5 forks source link

Stop lua script externally #24

Open docnux opened 8 years ago

docnux commented 8 years ago

Hello,

normally, the lua script runs as a thread and decides when to terminate, based on its own code. Is there a possibility to stop the lua script externally, this means by Perl a soon as the Perl code comes at a point where the lua script running in parallel shall be forced to stop?

Cheers, docnux.

hoelzro commented 8 years ago

@docnux Hi! Where did you get the impression that the Lua code runs in a separate thread? I'm not seeing this when I look at the code.