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
3eaec7a8
Kaydet (Commit)
3eaec7a8
authored
May 17, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
valgrind: use non-leaky singleton pattern here
üst
c3f4ddfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
officeipcthread.cxx
desktop/source/app/officeipcthread.cxx
+9
-13
officeipcthread.hxx
desktop/source/app/officeipcthread.hxx
+0
-1
No files found.
desktop/source/app/officeipcthread.cxx
Dosyayı görüntüle @
3eaec7a8
...
...
@@ -50,7 +50,8 @@
#include <rtl/strbuf.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/file.hxx>
#include "rtl/process.h"
#include <rtl/process.h>
#include <rtl/instance.hxx>
#include "tools/getprocessworkingdir.hxx"
using
namespace
desktop
;
...
...
@@ -223,7 +224,6 @@ bool addArgument(
OfficeIPCThread
*
OfficeIPCThread
::
pGlobalOfficeIPCThread
=
0
;
namespace
{
struct
Security
:
public
rtl
::
Static
<
osl
::
Security
,
Security
>
{};
}
::
osl
::
Mutex
*
OfficeIPCThread
::
pOfficeIPCThreadMutex
=
0
;
// Turns a string in aMsg such as file:///home/foo/.libreoffice/3
// Into a hex string of well known length ff132a86...
...
...
@@ -360,19 +360,15 @@ throw( RuntimeException )
{
}
// ----------------------------------------------------------------------------
::
osl
::
Mutex
&
OfficeIPCThread
::
GetMutex
()
namespace
{
// Get or create our mutex for thread-saftey
if
(
!
pOfficeIPCThreadMutex
)
{
::
osl
::
MutexGuard
aGuard
(
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
!
pOfficeIPCThreadMutex
)
pOfficeIPCThreadMutex
=
new
osl
::
Mutex
;
}
class
theOfficeIPCThreadMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
theOfficeIPCThreadMutex
>
{};
}
return
*
pOfficeIPCThreadMutex
;
::
osl
::
Mutex
&
OfficeIPCThread
::
GetMutex
()
{
return
theOfficeIPCThreadMutex
::
get
();
}
void
OfficeIPCThread
::
SetDowning
()
...
...
desktop/source/app/officeipcthread.hxx
Dosyayı görüntüle @
3eaec7a8
...
...
@@ -74,7 +74,6 @@ class OfficeIPCThread : public osl::Thread
{
private
:
static
OfficeIPCThread
*
pGlobalOfficeIPCThread
;
static
::
osl
::
Mutex
*
pOfficeIPCThreadMutex
;
osl
::
Pipe
maPipe
;
osl
::
StreamPipe
maStreamPipe
;
...
...
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