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

Call back Triggered via JS fails when object moved to threads

XMLWordPrintable

    • WebAssembly

      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

       

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

            sorvig Morten Sørvig
            irfan.omair@digia.com Irfan Omair
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes