Hi Guys, Any response on this. It is very important issue.
Thanks, Abed -----Original Message----- From: Crosswalk-help [mailto:[email protected]] On Behalf Of [email protected] Sent: Thursday, February 18, 2016 22:00 To: [email protected] Subject: Crosswalk-help Digest, Vol 26, Issue 19 Send Crosswalk-help mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Crosswalk-help digest..." Today's Topics: 1. Asynchronous message posting (Khet, Abed) ---------------------------------------------------------------------- Message: 1 Date: Thu, 18 Feb 2016 17:27:45 +0000 From: "Khet, Abed" <[email protected]> To: "[email protected]" <[email protected]> Cc: "Boimel, Ohad" <[email protected]> Subject: [Crosswalk-help] Asynchronous message posting Message-ID: <f6f8d49ca0cff04a98e40c719677fd292ece2...@hasmsx107.ger.corp.intel.com> Content-Type: text/plain; charset="us-ascii" Hi, I have the following line in my initialization function: g_messaging->Register(extension, handle_message); where g_messaging is from XW_MessagingInterface type. According to the documentation in the header file this function (handle_message) should be an called as an asynchronous messaging function and can be called in parallel form Javascript part. What happens is that even that calls in javascript that are fired using setTimeout JS function are being called serially one by one where the second one is called totally when the first one finishes its processing. I've tried solving this by using std::thread for each task depending on the fact the PostMessage function (XW_MessagingInterface_1::PostMessage) - but this caused a crash in the extension. How could I use asynchronous messaging in Crosswalk extension? Thanks, Abed --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.crosswalk-project.org/pipermail/crosswalk-help/attachments/20160218/43897fbf/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help ------------------------------ End of Crosswalk-help Digest, Vol 26, Issue 19 ********************************************** --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
