lua-users home
lua-l archive

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


First of all: many thanks for all the help and suggestions!

So to sum it up for my special case I'd prefer the following - as far
as I understood it:

I do a global lock as long as the script is running. This lock also
includes the C-callback function, means it will be called from its own
thread  but the LUA-part will not be processed.
>From time to time the user has to call a "handle message" function or
a "sleep" (the latter one already exists). During this time the thread
is unlocked and can do its processing and call into the LUA-callback
function.

Since it is not easy to reproduce my crash I ask this stupid question:
could that work?