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
74670bf0
Kaydet (Commit)
74670bf0
authored
Kas 07, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#56818 Work around deadlock caused by differing lock orders
Change-Id: Iaabe36bf0c1f051f9cebc2b65e614063698959fa
üst
628ec2a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
Library_embobj.mk
embeddedobj/Library_embobj.mk
+1
-0
build.lst
embeddedobj/prj/build.lst
+1
-1
embedobj.cxx
embeddedobj/source/commonembedding/embedobj.cxx
+11
-0
No files found.
embeddedobj/Library_embobj.mk
Dosyayı görüntüle @
74670bf0
...
...
@@ -45,6 +45,7 @@ $(eval $(call gb_Library_use_libraries,embobj,\
cppu \
cppuhelper \
sal \
vcl \
$(gb_UWINAPI) \
))
...
...
embeddedobj/prj/build.lst
Dosyayı görüntüle @
74670bf0
eo embeddedobj : offapi sal cppu cppuhelper comphelper tools unotools LIBXSLT:libxslt NULL
eo embeddedobj : offapi sal cppu cppuhelper comphelper tools unotools
vcl
LIBXSLT:libxslt NULL
eo embeddedobj\prj nmake - all eo_prj NULL
embeddedobj/source/commonembedding/embedobj.cxx
Dosyayı görüntüle @
74670bf0
...
...
@@ -40,6 +40,7 @@
#include <comphelper/processfactory.hxx>
#include <rtl/logfile.hxx>
#include <vcl/svapp.hxx>
#include <targetstatecontrol.hxx>
...
...
@@ -529,6 +530,16 @@ void SAL_CALL OCommonEmbeddedObject::doVerb( sal_Int32 nVerbID )
{
RTL_LOGFILE_CONTEXT
(
aLog
,
"embeddedobj (mv76033) OCommonEmbeddedObject::doVerb"
);
SolarMutexGuard
aSolarGuard
;
//TODO: a gross hack to avoid deadlocks when this is called from the
// outside and OCommonEmbeddedObject::changeState, with m_aMutex locked,
// calls into framework code that tries to lock the solar mutex, while
// another thread (through Window::ImplCallPaint, say) calls
// OCommonEmbeddedObject::getComponent with the solar mutex locked and
// then tries to lock m_aMutex (see fdo#56818); the alternative would be
// to get locking done right in this class, but that looks like a
// daunting task
::
osl
::
ResettableMutexGuard
aGuard
(
m_aMutex
);
if
(
m_bDisposed
)
throw
lang
::
DisposedException
();
// TODO
...
...
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