Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fd4b5571
Kaydet (Commit)
fd4b5571
authored
Mar 12, 2001
tarafından
Kay Ramme
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removed unnecessary synchronizeds; correct _message_count (#84611#)
üst
8fa11b23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
urp.java
jurt/com/sun/star/lib/uno/protocols/urp/urp.java
+12
-8
No files found.
jurt/com/sun/star/lib/uno/protocols/urp/urp.java
Dosyayı görüntüle @
fd4b5571
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: urp.java,v $
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
* last change: $Author: kr $ $Date: 2001-0
2-02 09:01:04
$
* last change: $Author: kr $ $Date: 2001-0
3-12 15:46:07
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -95,7 +95,7 @@ import com.sun.star.uno.Type;
* from uno. The functionality is reachable through
* the <code>IProtocol</code> interface.
* <p>
* @version $Revision: 1.
4 $ $ $Date: 2001-02-02 09:01:04
$
* @version $Revision: 1.
5 $ $ $Date: 2001-03-12 15:46:07
$
* @author Kay Ramme
* @see com.sun.star.lib.uno.environments.remote.IProtocol
* @since UDK1.0
...
...
@@ -342,7 +342,6 @@ public class urp extends Protocol {
return
result
;
}
public
void
writeRequest
(
String
oid
,
TypeDescription
zInterface
,
String
operation
,
...
...
@@ -355,7 +354,7 @@ public class urp extends Protocol {
++
_requestsSend
;
++
_message_count
;
synchronized
(
_marshal
)
{
MethodDescription
methodDescription
=
zInterface
.
getMethodDescription
(
operation
);
byte
header
=
0
;
...
...
@@ -472,12 +471,12 @@ public class urp extends Protocol {
if
(
synchron
[
0
].
booleanValue
())
// if we are waiting for a reply, the reply is pending
putPendingRequest
(
_out_threadId
,
new
Object
[]{
params
,
out_sig
,
methodDescription
.
getReturnSig
()});
}
}
public
void
writeReply
(
boolean
exception
,
ThreadID
threadId
,
Object
result
)
throws
Exception
{
if
(
DEBUG
)
System
.
err
.
println
(
"##### "
+
getClass
().
getName
()
+
".writeReply:"
+
exception
+
" "
+
threadId
+
" "
+
result
);
synchronized
(
_marshal
)
{
++
_message_count
;
Object
objects
[]
=
(
Object
[])
removePendingReply
(
threadId
);
Object
params
[]
=
(
Object
[])
objects
[
0
];
TypeDescription
signature
[]
=
(
TypeDescription
[])
objects
[
1
];
...
...
@@ -513,7 +512,6 @@ public class urp extends Protocol {
if
(
signature
[
i
]
!=
null
)
_marshal
.
writeObject
(
signature
[
i
].
getComponentType
(),
Array
.
get
(
params
[
i
],
0
));
}
}
private
byte
[]
readBlock
(
DataInput
dataInput
)
throws
Exception
{
...
...
@@ -532,6 +530,9 @@ public class urp extends Protocol {
private
void
writeBlock
(
DataOutput
dataOutput
,
byte
bytes
[],
int
message_count
)
throws
Exception
{
if
(
DEBUG
)
System
.
err
.
println
(
"##### "
+
getClass
().
getName
()
+
".writeBlock: size:"
+
bytes
.
length
+
" message_count:"
+
message_count
);
if
(
message_count
!=
1
)
System
.
err
.
println
(
"##### "
+
getClass
().
getName
()
+
".writeBlock: size:"
+
bytes
.
length
+
" message_count:"
+
message_count
);
dataOutput
.
writeInt
(
bytes
.
length
);
dataOutput
.
writeInt
(
message_count
);
...
...
@@ -667,9 +668,12 @@ public class urp extends Protocol {
public
void
flush
(
DataOutput
dataOutput
)
throws
Exception
{
if
(
_message_count
>
0
)
{
writeBlock
(
dataOutput
,
_marshal
.
reset
(),
_message_count
);
_message_count
=
0
;
}
}
public
IMarshal
createMarshal
()
{
return
new
Marshal
(
_iBridge
,
__cache_size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment