Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121141

Call back Triggered via JS fails when object moved to threads

    XMLWordPrintable

Details

    • WebAssembly

    Description

      When object is moved to thread then there are issues with callbacks triggered via JS / EM_ASM. Attached example shows this behavior when you build it with Wasam multithreaded.

      In attached code if you use the line

      auto thread = new QThread{this}; 

      You will see two native Callbacks in chrome browser console

      if you comment above line and use 

      thread = QThread::create([](){trigger();}); 
       

      You will see three native call backs. Actually 4 would be expected at this point

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.webassembly qt.webassembly
            irfan.omair@digia.com Irfan Omair
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes