Bug 41598 - [Qt] QScriptEngine should have an API for processing application events
Summary: [Qt] QScriptEngine should have an API for processing application events
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on: 41765
Blocks: 31863
  Show dependency treegraph
 
Reported: 2010-07-05 02:55 PDT by Kent Hansen
Modified: 2011-07-07 07:52 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Hansen 2010-07-05 02:55:00 PDT
See http://doc.trolltech.com/4.6/qscriptengine.html#setProcessEventsInterval

This can be used to e.g. keep the UI response when running a potentially long-running script in the GUI (main) thread.

To implement this functionality, a callback is needed from the VM every n milliseconds.
JSC currently has such a mechanism internally (TimeoutChecker), but there's no hook for it in the C API.
Comment 1 Jędrzej Nowacki 2011-07-07 07:52:22 PDT
Porting QtScript API over JSC C API will not be continued.