lua-users home
lua-l archive

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


You could set up a hook for each thread and use longjmps in each
handler to jump back and forth across threads. This however will be
very inefficient if you don't use large instruction counts I think.
You would need to set up your own collaboration technique. Also this
won't protect you much from time consuming C calls (if you want to
avoid this).

Cheers,

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant