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
2f3358d7
Kaydet (Commit)
2f3358d7
authored
Eki 08, 2010
tarafından
Joachim Lingner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
jl161 #i114933# solve deadlock problem when adding an extension
üst
8c1f6c9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
dp_extensionmanager.cxx
desktop/source/deployment/manager/dp_extensionmanager.cxx
+10
-5
dp_extensionmanager.hxx
desktop/source/deployment/manager/dp_extensionmanager.hxx
+0
-3
No files found.
desktop/source/deployment/manager/dp_extensionmanager.cxx
Dosyayı görüntüle @
2f3358d7
...
...
@@ -531,7 +531,11 @@ ExtensionManager::getSupportedPackageTypes()
{
return
m_userRepository
->
getSupportedPackageTypes
();
}
//Do some necessary checks and user interaction. This function does not
//aquire the extension manager mutex and that mutex must not be aquired
//when this function is called. doChecksForAddExtension does synchronous
//user interactions which may require aquiring the solar mutex.
//Returns true if the extension can be installed.
bool
ExtensionManager
::
doChecksForAddExtension
(
Reference
<
deploy
::
XPackageManager
>
const
&
xPackageMgr
,
uno
::
Sequence
<
beans
::
NamedValue
>
const
&
properties
,
...
...
@@ -708,6 +712,9 @@ Reference<deploy::XPackage> ExtensionManager::addExtension(
xOldExtension
,
Reference
<
task
::
XAbortChannel
>
(),
Reference
<
ucb
::
XCommandEnvironment
>
());
tmpExtensionRemoveGuard
.
reset
(
xExtensionBackup
);
//xTmpExtension will later be used to check the dependencies
//again. However, only xExtensionBackup will be later removed
//from the tmp repository
xTmpExtension
=
xExtensionBackup
;
OSL_ASSERT
(
xTmpExtension
.
is
());
}
...
...
@@ -783,18 +790,16 @@ Reference<deploy::XPackage> ExtensionManager::addExtension(
//Use a private AbortChannel so the user cannot interrupt.
try
{
Reference
<
ucb
::
XCommandEnvironment
>
tmpCmdEnv
(
new
TmpRepositoryCommandEnv
());
if
(
xExtensionBackup
.
is
())
{
Reference
<
deploy
::
XPackage
>
xRestored
=
xPackageManager
->
importExtension
(
xExtensionBackup
,
Reference
<
task
::
XAbortChannel
>
(),
tmpCmdEnv
);
Reference
<
ucb
::
XCommandEnvironment
>
()
);
}
activateExtension
(
sIdentifier
,
sFileName
,
bUserDisabled
,
false
,
Reference
<
task
::
XAbortChannel
>
(),
tmpCmdEnv
);
Reference
<
task
::
XAbortChannel
>
(),
Reference
<
ucb
::
XCommandEnvironment
>
()
);
}
catch
(...)
{
...
...
desktop/source/deployment/manager/dp_extensionmanager.hxx
Dosyayı görüntüle @
2f3358d7
...
...
@@ -299,9 +299,6 @@ private:
getPackageManager
(
::
rtl
::
OUString
const
&
repository
)
throw
(
css
::
lang
::
IllegalArgumentException
);
//Do some necessary checks and user interaction. This function does not
//aquire the extension manager mutex.
//Returns true if the extension can be installed.
bool
doChecksForAddExtension
(
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
const
&
xPackageMgr
,
css
::
uno
::
Sequence
<
css
::
beans
::
NamedValue
>
const
&
properties
,
...
...
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