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
63fc020a
Kaydet (Commit)
63fc020a
authored
Kas 14, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
workaround to prevent deadlock in obtaining Basic during threaded import
Change-Id: I730c179c117ffddf7ddf49ca0ea0a6e5217d4b2e
üst
70d08126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
compiler.cxx
sc/source/core/tool/compiler.cxx
+13
-0
No files found.
sc/source/core/tool/compiler.cxx
Dosyayı görüntüle @
63fc020a
...
...
@@ -2826,6 +2826,19 @@ bool ScCompiler::IsMacro( const OUString& rName )
return
false
;
#else
// Calling SfxObjectShell::GetBasic() may result in all sort of things
// including obtaining the model and deep down in
// SfxBaseModel::getDocumentStorage() acquiring the SolarMutex, which when
// formulas are compiled from a threaded import may result in a deadlock.
// Check first if we actually could acquire it and if not bail out.
/* FIXME: yes, but how ... */
if
(
!
Application
::
GetSolarMutex
().
tryToAcquire
())
{
SAL_WARN
(
"sc.core"
,
"ScCompiler::IsMacro - SolarMutex would deadlock, not obtaining Basic"
);
return
false
;
// bad luck
}
OUString
aName
(
rName
);
StarBASIC
*
pObj
=
0
;
SfxObjectShell
*
pDocSh
=
pDoc
->
GetDocumentShell
();
...
...
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