bugQtLua script engine for Qt - Bugs: bug #36608, Improvement suggestion

 
 

bug #36608: Improvement suggestion

Submitted by:  Sergey <z80>
Submitted on:  Fri 08 Jun 2012 07:41:12 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 14 Jul 2012 05:59:56 PM UTC, comment #1:

I just added the State::get_lua_state function.

Alexandre Becoulet <diaxen>
Project Administrator
Fri 08 Jun 2012 07:41:12 AM UTC, original submission:

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.

Sergey <z80>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #25993:  binder.cpp added by z80 (11kB - text/x-c++src)
file #25994:  binder.h added by z80 (2kB - text/x-chdr)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by diaxen (Posted a comment)
  • -unavailable- added by z80 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    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.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 Jul 2012 05:59:56 PM UTCdiaxenStatusNone=>Fixed
    Fri 08 Jun 2012 07:41:12 AM UTCz80Attached File-=>Added binder.cpp, #25993
      Attached File-=>Added binder.h, #25994

    Back to the top


    Powered by Savane 3.1-cleanup