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
d411dca1
Kaydet (Commit)
d411dca1
authored
Mar 03, 2015
tarafından
Tobias Madl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Timer Idle: adapted unit tests to new classes
Change-Id: I15654a7aa5a99cb3aa6f8ba222cf2aa1d2f040ab
üst
f384496d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
timer.cxx
vcl/qa/cppunit/timer.cxx
+6
-6
scheduler.cxx
vcl/source/app/scheduler.cxx
+0
-5
No files found.
vcl/qa/cppunit/timer.cxx
Dosyayı görüntüle @
d411dca1
...
@@ -93,7 +93,7 @@ public:
...
@@ -93,7 +93,7 @@ public:
Start
();
Start
();
mrBool
=
false
;
mrBool
=
false
;
}
}
virtual
void
DoIdl
e
()
SAL_OVERRIDE
virtual
void
Invok
e
()
SAL_OVERRIDE
{
{
mrBool
=
true
;
mrBool
=
true
;
Application
::
EndYield
();
Application
::
EndYield
();
...
@@ -104,7 +104,7 @@ void TimerTest::testIdle()
...
@@ -104,7 +104,7 @@ void TimerTest::testIdle()
{
{
bool
bTriggered
=
false
;
bool
bTriggered
=
false
;
IdleBool
aTest
(
bTriggered
);
IdleBool
aTest
(
bTriggered
);
Idle
::
ProcessAllIdleHandlers
(
);
Scheduler
::
ProcessTaskScheduling
(
false
);
CPPUNIT_ASSERT_MESSAGE
(
"watchdog triggered"
,
bTriggered
);
CPPUNIT_ASSERT_MESSAGE
(
"watchdog triggered"
,
bTriggered
);
}
}
...
@@ -121,7 +121,7 @@ public:
...
@@ -121,7 +121,7 @@ public:
Start
();
Start
();
mrBool
=
false
;
mrBool
=
false
;
}
}
virtual
void
Timeout
()
SAL_OVERRIDE
virtual
void
Invoke
()
SAL_OVERRIDE
{
{
mrBool
=
true
;
mrBool
=
true
;
Application
::
EndYield
();
Application
::
EndYield
();
...
@@ -156,7 +156,7 @@ public:
...
@@ -156,7 +156,7 @@ public:
Start
();
Start
();
mrCount
=
0
;
mrCount
=
0
;
}
}
virtual
void
Timeout
()
SAL_OVERRIDE
virtual
void
Invoke
()
SAL_OVERRIDE
{
{
mrCount
++
;
mrCount
++
;
}
}
...
@@ -181,7 +181,7 @@ public:
...
@@ -181,7 +181,7 @@ public:
SetTimeout
(
nMS
);
SetTimeout
(
nMS
);
Start
();
Start
();
}
}
virtual
void
Timeout
()
SAL_OVERRIDE
virtual
void
Invoke
()
SAL_OVERRIDE
{
{
for
(
int
i
=
0
;
i
<
100
;
i
++
)
for
(
int
i
=
0
;
i
<
100
;
i
++
)
Application
::
Yield
();
Application
::
Yield
();
...
@@ -211,7 +211,7 @@ public:
...
@@ -211,7 +211,7 @@ public:
Start
();
Start
();
mbSlow
=
false
;
mbSlow
=
false
;
}
}
virtual
void
Timeout
()
SAL_OVERRIDE
virtual
void
Invoke
()
SAL_OVERRIDE
{
{
TimeValue
aWait
;
TimeValue
aWait
;
aWait
.
Seconds
=
1
;
aWait
.
Seconds
=
1
;
...
...
vcl/source/app/scheduler.cxx
Dosyayı görüntüle @
d411dca1
...
@@ -53,13 +53,8 @@ ImplSchedulerData *ImplSchedulerData::GetMostImportantTask( bool bTimer )
...
@@ -53,13 +53,8 @@ ImplSchedulerData *ImplSchedulerData::GetMostImportantTask( bool bTimer )
// the priority of the most urgent, the priority of most urgent is increased and
// the priority of the most urgent, the priority of most urgent is increased and
// the current is the new most urgent. So starving is impossible.
// the current is the new most urgent. So starving is impossible.
if
(
p
->
mpScheduler
->
GetPriority
()
<
pMostUrgent
->
mpScheduler
->
GetPriority
()
)
if
(
p
->
mpScheduler
->
GetPriority
()
<
pMostUrgent
->
mpScheduler
->
GetPriority
()
)
{
pMostUrgent
->
mpScheduler
->
SetSchedulingPriority
(
pMostUrgent
->
mpScheduler
->
GetPriority
());
pMostUrgent
=
p
;
pMostUrgent
=
p
;
}
}
else
p
->
mpScheduler
->
SetSchedulingPriority
(
p
->
mpScheduler
->
GetPriority
());
}
}
}
return
pMostUrgent
;
return
pMostUrgent
;
...
...
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