×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    1

    QtScript and threads

    Hi! I want to run several concurrent jobs from QtScript script:

    Code:
    function job1() { ... }
    function job2() { ... }
    
    runConcurrent(job1, job2)
    Can QtScriptEngine be used from multiple threads? The class documentation seems to completly ignore the topic. If not what solution would you suggest?

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: QtScript and threads

    Hi,
    The reference documentation says that all functions in this class are reentrant. Which means they are no tread safe, but with mutexes or using concourrent programming you should be able to make QtScriptEngine be used from multime threads.

Similar Threads

  1. Replies: 4
    Last Post: 2010-10-18, 20:55
  2. QtScript + XMLHttpRequest
    By gurmukh in forum Nokia N9
    Replies: 9
    Last Post: 2010-08-25, 11:55
  3. Replies: 0
    Last Post: 2008-09-22, 11:37
  4. Threads - Please help
    By arunbangari in forum Symbian
    Replies: 2
    Last Post: 2004-11-24, 16:28
  5. Threads
    By karma2000 in forum Symbian
    Replies: 0
    Last Post: 2003-09-16, 22:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×