Discussion:
Query related to behavior of XInvocation::invoke() method
Sudeep K
2011-11-30 13:50:14 UTC
Permalink
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/XInvocation_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
“com.sun.star.script.XInvocation” interface.

Here, is our script which invokes the interface methods which are
implemented in C++
==========================================================
// Script
Obj = getInterface();
Obj.method1()
Obj.method2()
==========================================================


method1() and method2() gets invoked properly from Script.
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.
--
-----------------------------------------------------------------
To unsubscribe send email to dev-***@openoffice.org
For additional commands send email to ***@openoffice.org
with Subject: help
Loading...