Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User KotBegemoth's Avatar
    Join Date
    Jan 2012
    Posts
    1
    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
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    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 C++
    Replies: 2
    Last Post: 2004-11-24, 16:28
  5. Threads
    By karma2000 in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved