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
99508583
Kaydet (Commit)
99508583
authored
Mar 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use SolarMutexGuard directly
Change-Id: I674b247531d36e68e95f3e95893973eac6d61e01
üst
cb5e194c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
21 deletions
+7
-21
jobresult.hxx
framework/inc/jobs/jobresult.hxx
+1
-2
jobresult.cxx
framework/source/jobs/jobresult.cxx
+6
-19
No files found.
framework/inc/jobs/jobresult.hxx
Dosyayı görüntüle @
99508583
...
...
@@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_JOBS_JOBRESULT_HXX
#define INCLUDED_FRAMEWORK_INC_JOBS_JOBRESULT_HXX
#include <threadhelp/threadhelpbase.hxx>
#include <stdtypes.h>
#include <general.h>
...
...
@@ -40,7 +39,7 @@ namespace framework{
data from the code place where the job was finished
to the outside code, where e.g. listener must be notified.
*/
class
JobResult
:
private
ThreadHelpBase
class
JobResult
{
// types
...
...
framework/source/jobs/jobresult.cxx
Dosyayı görüntüle @
99508583
...
...
@@ -19,7 +19,6 @@
#include <jobs/jobresult.hxx>
#include <jobs/jobconst.hxx>
#include <threadhelp/guard.hxx>
#include <general.h>
#include <services.h>
...
...
@@ -35,8 +34,7 @@ namespace framework{
but it marks this new instance as non valid!
*/
JobResult
::
JobResult
()
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
())
,
m_bDeactivate
(
false
)
:
m_bDeactivate
(
false
)
{
// reset the flag mask!
// It will reset the accessible state of this object.
...
...
@@ -89,8 +87,7 @@ JobResult::JobResult()
the job result
*/
JobResult
::
JobResult
(
/*IN*/
const
css
::
uno
::
Any
&
aResult
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
())
,
m_bDeactivate
(
false
)
:
m_bDeactivate
(
false
)
{
// safe the pure result
// May someone need it later ...
...
...
@@ -136,7 +133,6 @@ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult )
@descr -
*/
JobResult
::
JobResult
(
const
JobResult
&
rCopy
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
())
{
m_aPureResult
=
rCopy
.
m_aPureResult
;
m_eParts
=
rCopy
.
m_eParts
;
...
...
@@ -165,15 +161,12 @@ JobResult::~JobResult()
*/
void
JobResult
::
operator
=
(
const
JobResult
&
rCopy
)
{
/* SAFE { */
Guard
aWriteLock
(
m_aLock
);
SolarMutexGuard
g
;
m_aPureResult
=
rCopy
.
m_aPureResult
;
m_eParts
=
rCopy
.
m_eParts
;
m_lArguments
=
rCopy
.
m_lArguments
;
m_bDeactivate
=
rCopy
.
m_bDeactivate
;
m_aDispatchResult
=
rCopy
.
m_aDispatchResult
;
aWriteLock
.
unlock
();
/* } SAFE */
}
...
...
@@ -191,10 +184,8 @@ void JobResult::operator=( const JobResult& rCopy )
*/
sal_Bool
JobResult
::
existPart
(
sal_uInt32
eParts
)
const
{
/* SAFE { */
Guard
aReadLock
(
m_aLock
);
SolarMutexGuard
g
;
return
((
m_eParts
&
eParts
)
==
eParts
);
/* } SAFE */
}
...
...
@@ -208,20 +199,16 @@ sal_Bool JobResult::existPart( sal_uInt32 eParts ) const
*/
css
::
uno
::
Sequence
<
css
::
beans
::
NamedValue
>
JobResult
::
getArguments
()
const
{
/* SAFE { */
Guard
aReadLock
(
m_aLock
);
SolarMutexGuard
g
;
return
m_lArguments
;
/* } SAFE */
}
css
::
frame
::
DispatchResultEvent
JobResult
::
getDispatchResult
()
const
{
/* SAFE { */
Guard
aReadLock
(
m_aLock
);
SolarMutexGuard
g
;
return
m_aDispatchResult
;
/* } SAFE */
}
}
// namespace framework
...
...
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