[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is there a way to pause lua_pcall() and resume later?
- From: Andreas Falkenhahn <andreas@...>
- Date: Mon, 12 Aug 2019 15:45:16 +0200
On 12.08.2019 at 15:39 Viacheslav Usov wrote:
> I doubt this problem is really about Lua. You real issue is that whatever you do on the UI thread should not block it. If you "pause" it, that will still block it.
To clarify, what I mean by "pause" is that lua_pcall() must return so that control is back on the UI thread. Later, once I have received the event that the message box has been closed, I want to "resume" the previous call to lua_pcall().
> If I knew more about Android, I'd say you might also consider running the message/event loop within your implementation
AFAIU this is not possible because Android doesn't support modal loops at all.
Andreas Falkenhahn mailto:email@example.com