luajit state CPU time limit

  • From: Александр Киранов <xhaskx@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 4 Nov 2014 22:34:48 +0300

Hi all!

Need your help with C api of luajit.

I have large Linux application, it contains many OS threads and some of
them has lua_State to execute LUA scripts.
And I need to prevent big CPU time consumption by any lua_State.
So, when some lua_State consumed too many CPU I need to know it and handle
it on LUA or on C level.

Maybe there is an existing solution in luajit for it?
Or somebody can point me where in luajit source I can put some appropriate
"crutch" for my purpose?

P.S. sorry for my bad english

---
Best regards,
Alex

Other related posts: