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
533b9ab6
Kaydet (Commit)
533b9ab6
authored
Tem 31, 2014
tarafından
Andrzej Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
osl_areCommandArgsSet: ensure mutexes locked when accessing data.
Change-Id: I6b1f10e74aafc47e5618290d92087563c60e3c49
üst
41fbe858
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
process_impl.cxx
sal/osl/unx/process_impl.cxx
+4
-1
process.cxx
sal/osl/w32/process.cxx
+4
-1
No files found.
sal/osl/unx/process_impl.cxx
Dosyayı görüntüle @
533b9ab6
...
...
@@ -193,7 +193,10 @@ oslProcessError SAL_CALL osl_getCommandArg (sal_uInt32 nArg, rtl_uString ** strC
int
SAL_CALL
osl_areCommandArgsSet
(
void
)
{
return
(
g_command_args
.
m_nCount
>
0
);
pthread_mutex_lock
(
&
(
g_command_args
.
m_mutex
));
int
nRet
=
(
int
)
(
g_command_args
.
m_nCount
>
0
);
pthread_mutex_unlock
(
&
(
g_command_args
.
m_mutex
));
return
nRet
;
}
/***************************************
...
...
sal/osl/w32/process.cxx
Dosyayı görüntüle @
533b9ab6
...
...
@@ -376,7 +376,10 @@ oslProcessError SAL_CALL osl_getCommandArg( sal_uInt32 nArg, rtl_uString **strCo
int
SAL_CALL
osl_areCommandArgsSet
(
void
)
{
return
(
g_command_args
.
m_nCount
>
0
);
osl_acquireMutex
(
*
osl_getGlobalMutex
());
int
nRet
=
(
int
)
(
g_command_args
.
m_nCount
>
0
);
osl_releaseMutex
(
*
osl_getGlobalMutex
());
return
nRet
;
}
...
...
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