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
9c7016b5
Kaydet (Commit)
9c7016b5
authored
Mar 09, 2015
tarafından
Tobias Madl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Scheduler: Changed uLong to uInt32/uInt64
Change-Id: Ic60463027c7f1b2d513539adba834b8d8e0ce6d3
üst
e379476e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
scheduler.hxx
include/vcl/scheduler.hxx
+3
-3
timer.hxx
include/vcl/timer.hxx
+6
-6
svdata.hxx
vcl/inc/svdata.hxx
+2
-2
scheduler.cxx
vcl/source/app/scheduler.cxx
+4
-4
timer.cxx
vcl/source/app/timer.cxx
+6
-6
No files found.
include/vcl/scheduler.hxx
Dosyayı görüntüle @
9c7016b5
...
...
@@ -30,8 +30,8 @@ struct ImplSchedulerData
Scheduler
*
mpScheduler
;
// Pointer to VCL Scheduler instance
bool
mbDelete
;
// Destroy this scheduler?
bool
mbInScheduler
;
// Scheduler currently processed?
sal_u
Long
mnUpdateTime
;
// Last Update Time
sal_u
Long
mnUpdateStack
;
// Update Stack
sal_u
Int64
mnUpdateTime
;
// Last Update Time
sal_u
Int32
mnUpdateStack
;
// Update Stack
void
Invoke
();
...
...
@@ -59,7 +59,7 @@ protected:
friend
struct
ImplSchedulerData
;
virtual
void
SetDeletionFlags
();
virtual
bool
ReadyForSchedule
(
bool
bTimer
)
{
return
!
bTimer
;
}
virtual
sal_u
Long
UpdateMinPeriod
(
sal_uLong
nMinPeriod
,
sal_uLong
nTime
);
virtual
sal_u
Int64
UpdateMinPeriod
(
sal_uInt64
nMinPeriod
,
sal_uInt64
nTime
);
public
:
Scheduler
();
...
...
include/vcl/timer.hxx
Dosyayı görüntüle @
9c7016b5
...
...
@@ -27,12 +27,12 @@ class VCL_DLLPUBLIC Timer : public Scheduler
{
protected
:
Link
maTimeoutHdl
;
// Callback Link
sal_u
Long
mnTimeout
;
sal_u
Int64
mnTimeout
;
bool
mbAuto
;
virtual
void
SetDeletionFlags
()
SAL_OVERRIDE
;
virtual
bool
ReadyForSchedule
(
bool
bTimer
)
SAL_OVERRIDE
;
virtual
sal_u
Long
UpdateMinPeriod
(
sal_uLong
nMinPeriod
,
sal_uLong
nTime
)
SAL_OVERRIDE
;
virtual
sal_u
Int64
UpdateMinPeriod
(
sal_uInt64
nMinPeriod
,
sal_uInt64
nTime
)
SAL_OVERRIDE
;
public
:
Timer
();
...
...
@@ -42,13 +42,13 @@ public:
/// of course, you can also sub-class and override 'Invoke'
void
SetTimeoutHdl
(
const
Link
&
rLink
)
{
maTimeoutHdl
=
rLink
;
}
const
Link
&
GetTimeoutHdl
()
const
{
return
maTimeoutHdl
;
}
void
SetTimeout
(
sal_u
Long
nTimeoutMs
);
sal_u
Long
GetTimeout
()
const
{
return
mnTimeout
;
}
void
SetTimeout
(
sal_u
Int64
nTimeoutMs
);
sal_u
Int64
GetTimeout
()
const
{
return
mnTimeout
;
}
virtual
void
Invoke
()
SAL_OVERRIDE
;
void
Timeout
()
{
Invoke
();
}
Timer
&
operator
=
(
const
Timer
&
rTimer
);
virtual
void
Start
()
SAL_OVERRIDE
;
static
void
ImplStartTimer
(
ImplSVData
*
pSVData
,
sal_u
Long
nMS
);
virtual
void
Start
()
SAL_OVERRIDE
;
static
void
ImplStartTimer
(
ImplSVData
*
pSVData
,
sal_u
Int64
nMS
);
};
/// An auto-timer is a multi-shot timer re-emitting itself at
...
...
vcl/inc/svdata.hxx
Dosyayı görüntüle @
9c7016b5
...
...
@@ -316,8 +316,8 @@ struct ImplSVData
SalI18NImeStatus
*
mpImeStatus
;
// interface to ime status window
SalSystem
*
mpSalSystem
;
// SalSystem interface
ResMgr
*
mpResMgr
;
// SV-Resource-Manager
sal_u
Long
mnTimerPeriod
;
// current timer period
sal_u
Long
mnUpdateStack
;
// Scheduler on stack
sal_u
Int64
mnTimerPeriod
;
// current timer period
sal_u
Int32
mnUpdateStack
;
// Scheduler on stack
ImplSVAppData
maAppData
;
// indepen data for class Application
ImplSVGDIData
maGDIData
;
// indepen data for Output classes
ImplSVWinData
maWinData
;
// indepen data for Windows classes
...
...
vcl/source/app/scheduler.cxx
Dosyayı görüntüle @
9c7016b5
...
...
@@ -23,7 +23,7 @@
#include <vcl/timer.hxx>
#include <saltimer.hxx>
#define MAX_TIMER_PERIOD ((sal_u
Long
)0xFFFFFFFF)
#define MAX_TIMER_PERIOD ((sal_u
Int64
)0xFFFFFFFF)
void
ImplSchedulerData
::
Invoke
()
{
...
...
@@ -116,8 +116,8 @@ void Scheduler::ProcessTaskScheduling( bool bTimer )
ImplSchedulerData
*
pSchedulerData
=
NULL
;
ImplSchedulerData
*
pPrevSchedulerData
=
NULL
;
ImplSVData
*
pSVData
=
ImplGetSVData
();
sal_u
Long
nTime
=
tools
::
Time
::
GetSystemTicks
();
sal_u
Long
nMinPeriod
=
MAX_TIMER_PERIOD
;
sal_u
Int64
nTime
=
tools
::
Time
::
GetSystemTicks
();
sal_u
Int64
nMinPeriod
=
MAX_TIMER_PERIOD
;
pSVData
->
mnUpdateStack
++
;
if
((
pSchedulerData
=
ImplSchedulerData
::
GetMostImportantTask
(
bTimer
)))
...
...
@@ -168,7 +168,7 @@ void Scheduler::ProcessTaskScheduling( bool bTimer )
pSVData
->
mnUpdateStack
--
;
}
sal_u
Long
Scheduler
::
UpdateMinPeriod
(
sal_uLong
nMinPeriod
,
sal_uLong
nTime
)
sal_u
Int64
Scheduler
::
UpdateMinPeriod
(
sal_uInt64
nMinPeriod
,
sal_uInt64
nTime
)
{
// this period is only usefull for timer
// so in this implementation it' only a pass through
...
...
vcl/source/app/timer.cxx
Dosyayı görüntüle @
9c7016b5
...
...
@@ -23,9 +23,9 @@
#include <svdata.hxx>
#include <salinst.hxx>
#define MAX_TIMER_PERIOD ((sal_u
Long
)0xFFFFFFFF)
#define MAX_TIMER_PERIOD ((sal_u
Int64
)0xFFFFFFFF)
void
Timer
::
ImplStartTimer
(
ImplSVData
*
pSVData
,
sal_u
Long
nMS
)
void
Timer
::
ImplStartTimer
(
ImplSVData
*
pSVData
,
sal_u
Int64
nMS
)
{
if
(
!
nMS
)
nMS
=
1
;
...
...
@@ -54,10 +54,10 @@ bool Timer::ReadyForSchedule( bool bTimer )
return
(
mpSchedulerData
->
mnUpdateTime
+
mnTimeout
)
<=
tools
::
Time
::
GetSystemTicks
();
}
sal_u
Long
Timer
::
UpdateMinPeriod
(
sal_uLong
nMinPeriod
,
sal_uLong
nTime
)
sal_u
Int64
Timer
::
UpdateMinPeriod
(
sal_uInt64
nMinPeriod
,
sal_uInt64
nTime
)
{
sal_u
Long
nNewTime
=
tools
::
Time
::
GetSystemTicks
();
sal_u
Long
nDeltaTime
;
sal_u
Int64
nNewTime
=
tools
::
Time
::
GetSystemTicks
();
sal_u
Int64
nDeltaTime
;
//determine smallest time slot
if
(
mpSchedulerData
->
mnUpdateTime
==
nTime
)
{
...
...
@@ -114,7 +114,7 @@ void Timer::Start()
Timer
::
ImplStartTimer
(
pSVData
,
mnTimeout
);
}
void
Timer
::
SetTimeout
(
sal_u
Long
nNewTimeout
)
void
Timer
::
SetTimeout
(
sal_u
Int64
nNewTimeout
)
{
mnTimeout
=
nNewTimeout
;
// if timer is active then renew clock
...
...
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