Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 12/04/2013 01:13 PM, Noel Grandin wrote:
(*) Change the UNO/scripting processing model to do something like
      while (Message m = readMessage() != null) {
           invokeOnMainThread(void f() {
               processMessage(m);
           });
      }

...which deadlocks as soon as you have a synchronous call chain -> A -> B -> C where A and C are local and B is a callback to the remote site.

I have very little hopes that any "automatic" scheme will bring success here. The only model that would IMO work is to have a single-threaded GUI (as virtually everybody else does too, for a reason), in the one direction offloading potentially time-consuming activities triggered by the GUI event loop to additional threads, and in the other direction dispatching GUI activities required by non-GUI code (e.g., URP, scripting) to the GUI event loop, explicitly coded.

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.