Add a New Comment (Rich Markup)
Comment Type & Canned Response: None No canned response available
I just added the State::get_lua_state function.
I'm sorry in advance if my suggestion sounds stupid!
Using QtLua I met the following problem. As far as QtLua works in the same thread as GUI for long time running scrits software stalls.
For Lua versions 5.1.x I've found the only one ability to overcome that. I register lua_hook function where I call qApp->processEvents() and tracing a code.
The problem is I failed to find any rational way to get lua_State pointer from QtLua::State. So I get it using global variable and global mutex. See lines 133-138 of attached binder.cpp file. I find this way to be not very elegant.
So my suggestion is to implement either an ability to execute long time running scripts or to provide an ability to get lua_State pointer.
I do believe I could add both issues and provide them as a patch or something like that.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 3 latest changes.
Copyright © 2022 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9