[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C functions in Lua coroutines
- From: bil til <biltil52@...>
- Date: Tue, 28 Mar 2023 11:01:41 +0200
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...).