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
0cdf0908
Kaydet (Commit)
0cdf0908
authored
Ara 08, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make ImplSVData private to vcl
Change-Id: I1df6ba8a269be3e165ff5948af1dd12e0bdc6f7d
üst
e1df21cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
scheduler.hxx
include/vcl/scheduler.hxx
+0
-5
svapp.hxx
include/vcl/svapp.hxx
+0
-3
scheduler.cxx
vcl/source/app/scheduler.cxx
+11
-2
svapp.cxx
vcl/source/app/svapp.cxx
+9
-1
No files found.
include/vcl/scheduler.hxx
Dosyayı görüntüle @
0cdf0908
...
...
@@ -23,7 +23,6 @@
#include <vcl/dllapi.h>
class
Scheduler
;
struct
ImplSVData
;
struct
ImplSchedulerData
;
enum
class
SchedulerPriority
{
...
...
@@ -39,9 +38,6 @@ enum class SchedulerPriority {
class
VCL_DLLPUBLIC
Scheduler
{
private
:
static
void
InitSystemTimer
(
ImplSVData
*
pSVData
);
protected
:
ImplSchedulerData
*
mpSchedulerData
;
/// Pointer to element in scheduler list
const
sal_Char
*
mpDebugName
;
/// Useful for debugging
...
...
@@ -50,7 +46,6 @@ protected:
// These should be constexpr static, when supported.
static
const
sal_uInt64
ImmediateTimeoutMs
=
1
;
static
const
sal_uInt64
MaximumTimeoutMs
=
1000
*
60
;
// 1 minute
static
void
ImplStartTimer
(
sal_uInt64
nMS
,
bool
bForce
=
false
);
...
...
include/vcl/svapp.hxx
Dosyayı görüntüle @
0cdf0908
...
...
@@ -1450,9 +1450,6 @@ public:
static
void
setDeInitHook
(
Link
<
LinkParamNone
*
,
void
>
const
&
hook
);
private
:
static
void
InitSettings
(
ImplSVData
*
pSVData
);
DECL_STATIC_LINK_TYPED
(
Application
,
PostEventHandler
,
void
*
,
void
);
};
...
...
vcl/source/app/scheduler.cxx
Dosyayı görüntüle @
0cdf0908
...
...
@@ -24,6 +24,11 @@
#include <svdata.hxx>
#include <salinst.hxx>
namespace
{
const
sal_uInt64
MaximumTimeoutMs
=
1000
*
60
;
// 1 minute
void
InitSystemTimer
(
ImplSVData
*
pSVData
);
}
void
ImplSchedulerData
::
Invoke
()
{
if
(
mbDelete
||
mbInScheduler
)
...
...
@@ -135,21 +140,25 @@ void Scheduler::ImplStartTimer(sal_uInt64 nMS, bool bForce)
}
}
namespace
{
/**
* Initialize the platform specific timer on which all the
* platform independent timers are built
*/
void
Scheduler
::
InitSystemTimer
(
ImplSVData
*
pSVData
)
void
InitSystemTimer
(
ImplSVData
*
pSVData
)
{
assert
(
pSVData
!=
nullptr
);
if
(
!
pSVData
->
mpSalTimer
)
{
pSVData
->
mnTimerPeriod
=
MaximumTimeoutMs
;
pSVData
->
mpSalTimer
=
pSVData
->
mpDefInst
->
CreateSalTimer
();
pSVData
->
mpSalTimer
->
SetCallback
(
CallbackTaskScheduling
);
pSVData
->
mpSalTimer
->
SetCallback
(
Scheduler
::
CallbackTaskScheduling
);
}
}
}
void
Scheduler
::
CallbackTaskScheduling
(
bool
ignore
)
{
// this function is for the saltimer callback
...
...
vcl/source/app/svapp.cxx
Dosyayı görüntüle @
0cdf0908
...
...
@@ -80,6 +80,10 @@
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
namespace
{
void
InitSettings
(
ImplSVData
*
pSVData
);
}
// keycodes handled internally by VCL
class
ImplReservedKey
{
...
...
@@ -769,7 +773,9 @@ const AllSettings& Application::GetSettings()
return
*
(
pSVData
->
maAppData
.
mpSettings
);
}
void
Application
::
InitSettings
(
ImplSVData
*
pSVData
)
namespace
{
void
InitSettings
(
ImplSVData
*
pSVData
)
{
assert
(
!
pSVData
->
maAppData
.
mpSettings
&&
"initialization should not happen twice!"
);
...
...
@@ -781,6 +787,8 @@ void Application::InitSettings(ImplSVData* pSVData)
}
}
}
void
Application
::
NotifyAllWindows
(
DataChangedEvent
&
rDCEvt
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
...
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