Query related to behavior of XInvocation::invoke() method
Sudeep K <[email protected]> Wed, 30 Nov 2011 05:50:14 -0800 (PST)
| Newsgroups | gmane.comp.openoffice.devel.general |
|---|---|
| Message-ID | <[email protected]> |
We are using a scripting language to bind with UNO. To achieve this we developed a bridge which uses the same concept and design as mentioned on http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/AdvUNO/XInv= ocation_Bridge (i.e. When scripting language creates a reference of UNO interface/component, our bridge internally creates Proxy for the same. When scripting language invokes any method on UNO component, our bridge processes that method call by invoking invoke() method of =E2=80=9Ccom.sun.star.script.XInvocation=E2=80=9D interface. Here, is our script which invokes the interface methods which are implemented in C++ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D // Script=20 Obj =3D getInterface(); Obj.method1() Obj.method2() =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D method1() and method2() gets invoked properly from Script.=20 However, we observed that, even if we invoke method1() and method2() on the same Obj, sometimes the methods (i.e. method1 () and method2 ()) are being invoked in a separate thread and sometimes in the same thread. (We confirmed this by printing thread id in the implementation of method1() and method2()). So the question is: Does the Xinvocation::invoke() internally creates separate threads to invoke the different interface methods on the same object? -- View this message in context: http://openoffice.2283327.n4.nabble.com/Query= -related-to-behavior-of-XInvocation-invoke-method-tp4123039p4123039.html Sent from the openoffice - dev mailing list archive at Nabble.com. --=20 ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help