[Solved] Mixed oneway and normal/synchronous UNO calls

The Application Programming Interface and the OASIS Open Document Format

[Solved] Mixed oneway and normal/synchronous UNO calls

Postby karsten.burger » Thu Jul 19, 2012 3:50 pm

Hello,

I found this guarantee for oneway calls:

http://www.openoffice.org/udk/common/man/uno.html

sequence of calls:
UNO allows declaring a method oneway (or asynchron). Multiple, oneway calls are guaranteed to be executed in the same sequence as they were called.


Now my question: what happens when oneway and normal synchronous calls are mixed?

We use UNO as a component framework for our large project with many of our own interfaces. E.g. if several oneway calls are issued, and then a synchronous call, does the synchronous call wait until the oneway calls are finished? Or are normal and oneway/async calls not connected?

Thanks in advance.
Last edited by Hagar Delest on Tue Sep 11, 2012 11:12 am, edited 1 time in total.
Reason: tagged [Solved].
Ooffice 3.1.1, Linux
karsten.burger
 
Posts: 4
Joined: Thu Jul 19, 2012 3:40 pm

Re: Mixed oneway and normal/synchronous UNO interface calls

Postby rudolfo » Sat Jul 21, 2012 2:16 am

Hm, that's an interesting point. But I guess you won't get any answers here. We are OpenOffice users helping other users. Although some of us have some experience with development around UNO objects, most of it is about writing macros.
Your question depends on the internal implementation of the UNO objects, probably something that only the developers can answer: Better use one of the mailing list of the Apache project: http://incubator.apache.org/openofficeo ... lists.html
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.
rudolfo
Volunteer
 
Posts: 1488
Joined: Wed Mar 19, 2008 11:34 am
Location: Germany

Re: Mixed oneway and normal/synchronous UNO interface calls

Postby karsten.burger » Mon Jul 23, 2012 9:33 am

Thank you. I will post the result here if I have one.
Ooffice 3.1.1, Linux
karsten.burger
 
Posts: 4
Joined: Thu Jul 19, 2012 3:40 pm

Re: Mixed oneway and normal/synchronous UNO interface calls

Postby pitonyak » Tue Sep 11, 2012 7:36 am

Are you able to devise a test to see the behavior? My expectation is that a call that is not one way does not provide any guarantees, but I vaguely remember seeing something about ordering calls based on the caller. Sadly, I was not able to find any references and I am likely wrong on that.
Andrew Pitonyak
http://www.pitonyak.org/oo.php
LO and AOO on Fedora
pitonyak
Volunteer
 
Posts: 186
Joined: Sun Oct 07, 2007 9:13 pm
Location: Columbus, Ohio, USA

Re: Mixed oneway and normal/synchronous UNO interface calls

Postby karsten.burger » Tue Sep 11, 2012 9:47 am

We have done tests here and it works as described: when a synchronous call follows previous oneway calls, it waits until the oneeways are finished.

We used OpenOffice URE and SDK sources Version 2.3.0 (OO680_m5).
Ooffice 3.1.1, Linux
karsten.burger
 
Posts: 4
Joined: Thu Jul 19, 2012 3:40 pm

Re: [Solved] Mixed oneway and normal/synchronous UNO calls

Postby pitonyak » Tue Sep 11, 2012 2:30 pm

Excellent, that sounds like exactly the behavior that you should desire.... :-)
Andrew Pitonyak
http://www.pitonyak.org/oo.php
LO and AOO on Fedora
pitonyak
Volunteer
 
Posts: 186
Joined: Sun Oct 07, 2007 9:13 pm
Location: Columbus, Ohio, USA


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 3 guests