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
9a110fff
Kaydet (Commit)
9a110fff
authored
Mar 20, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use an osl::Mutex directly
Change-Id: I4f483efd13c099348f06094573c499858a8431ba
üst
3d07d18a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
loaddispatcher.cxx
framework/source/dispatch/loaddispatcher.cxx
+2
-7
loaddispatcher.hxx
framework/source/inc/dispatch/loaddispatcher.hxx
+2
-3
No files found.
framework/source/dispatch/loaddispatcher.cxx
Dosyayı görüntüle @
9a110fff
...
...
@@ -18,7 +18,6 @@
*/
#include <dispatch/loaddispatcher.hxx>
#include <threadhelp/guard.hxx>
#include <com/sun/star/frame/DispatchResultState.hpp>
...
...
@@ -28,8 +27,7 @@ LoadDispatcher::LoadDispatcher(const css::uno::Reference< css::uno::XComponentCo
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
xOwnerFrame
,
const
OUString
&
sTargetName
,
sal_Int32
nSearchFlags
)
:
ThreadHelpBase
(
)
,
m_xContext
(
xContext
)
:
m_xContext
(
xContext
)
,
m_xOwnerFrame
(
xOwnerFrame
)
,
m_sTarget
(
sTargetName
)
,
m_nSearchFlags
(
nSearchFlags
)
...
...
@@ -85,8 +83,7 @@ css::uno::Any LoadDispatcher::impl_dispatch( const css::util::URL& rURL,
// and clear our reference ...) we should hold us self alive!
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
xThis
(
static_cast
<
css
::
frame
::
XNotifyingDispatch
*
>
(
this
),
css
::
uno
::
UNO_QUERY
);
// SAFE -> ----------------------------------
Guard
aReadLock
(
m_aLock
);
osl
::
MutexGuard
g
(
m_mutex
);
// We are the only client of this load env object ... but
// may a dispatch request before is still in progress (?!).
...
...
@@ -151,8 +148,6 @@ css::uno::Any LoadDispatcher::impl_dispatch( const css::util::URL& rURL,
if
(
xComponent
.
is
()
)
aRet
=
css
::
uno
::
makeAny
(
xComponent
);
aReadLock
.
unlock
();
// <- SAFE ----------------------------------
return
aRet
;
}
...
...
framework/source/inc/dispatch/loaddispatcher.hxx
Dosyayı görüntüle @
9a110fff
...
...
@@ -21,7 +21,6 @@
#define INCLUDED_FRAMEWORK_SOURCE_INC_DISPATCH_LOADDISPATCHER_HXX
#include <loadenv/loadenv.hxx>
#include <threadhelp/threadhelpbase.hxx>
#include <com/sun/star/frame/XNotifyingDispatch.hpp>
#include <com/sun/star/frame/XSynchronousDispatch.hpp>
...
...
@@ -36,14 +35,14 @@ namespace framework{
@author as96863
*/
class
LoadDispatcher
:
private
ThreadHelpBase
,
public
::
cppu
::
WeakImplHelper2
<
css
::
frame
::
XNotifyingDispatch
,
// => XDispatch => XInterface
class
LoadDispatcher
:
public
::
cppu
::
WeakImplHelper2
<
css
::
frame
::
XNotifyingDispatch
,
// => XDispatch => XInterface
css
::
frame
::
XSynchronousDispatch
>
{
// member
private
:
osl
::
Mutex
m_mutex
;
/** @short can be used to create own needed services on demand. */
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
...
...
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