lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If you anyway "pimp up" Lua by add-on own C functionality, it is
better if you offer your own way to allow coroutine handling to the
Lua user (I created a small thread lib for this).

See chapter 33 "Threads and States in C" in "Programming in Lua" by Roberto.

(if you do cooperative multitasking in your C program, you anyway have
to have some possibility for such thread generation in your C
software, then you can usually quite easily also present this to your
Lua user - and then best do NOT allow the user to use the coroutine
library...).