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
567592c9
Kaydet (Commit)
567592c9
authored
Ara 17, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: don't synch on an object and also assign to it
Change-Id: Ie0a098e935e640f10b77d259c96bbd1c604d701e
üst
41f4417b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
TableCellTextBinding.java
forms/qa/integration/forms/TableCellTextBinding.java
+3
-10
No files found.
forms/qa/integration/forms/TableCellTextBinding.java
Dosyayı görüntüle @
567592c9
...
@@ -102,14 +102,11 @@ public class TableCellTextBinding
...
@@ -102,14 +102,11 @@ public class TableCellTextBinding
throw
new
com
.
sun
.
star
.
form
.
binding
.
IncompatibleTypesException
();
throw
new
com
.
sun
.
star
.
form
.
binding
.
IncompatibleTypesException
();
}
}
// remember the new text
// remember the new text
synchronized
(
m_newCellText
)
{
m_newCellText
=
text
;
m_haveNewCellText
=
true
;
}
// and wake up the thread which is waiting for it
// and wake up the thread which is waiting for it
synchronized
(
m_writeSignal
)
synchronized
(
m_writeSignal
)
{
{
m_newCellText
=
text
;
m_haveNewCellText
=
true
;
m_writeSignal
.
notify
();
m_writeSignal
.
notify
();
}
}
}
}
...
@@ -142,11 +139,7 @@ public class TableCellTextBinding
...
@@ -142,11 +139,7 @@ public class TableCellTextBinding
synchronized
(
m_writeSignal
)
synchronized
(
m_writeSignal
)
{
{
m_writeSignal
.
wait
(
200
);
m_writeSignal
.
wait
(
200
);
}
// if there's new text in the control, propagate it to the cell
// if there's new text in the control, propagate it to the cell
synchronized
(
m_newCellText
)
{
if
(
m_haveNewCellText
)
if
(
m_haveNewCellText
)
{
{
m_cellText
.
setString
(
m_newCellText
);
m_cellText
.
setString
(
m_newCellText
);
...
...
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