lua-users home
lua-l archive

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


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.

-- 
Best regards,
 Andreas Falkenhahn                            mailto:andreas@falkenhahn.com