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
35811889
Kaydet (Commit)
35811889
authored
Kas 05, 2014
tarafından
Tobias Madl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
changed timers to idles
Change-Id: Ia9f6afb29a387c0af7d898fb69f5a3b415add7b0
üst
19b7dc3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
threadmanager.cxx
sw/source/core/docnode/threadmanager.cxx
+6
-6
threadmanager.hxx
sw/source/core/inc/threadmanager.hxx
+1
-1
No files found.
sw/source/core/docnode/threadmanager.cxx
Dosyayı görüntüle @
35811889
...
...
@@ -37,7 +37,7 @@ ThreadManager::ThreadManager( uno::Reference< util::XJobManager >& rThreadJoiner
mnThreadIDCounter
(
0
),
maWaitingForStartThreads
(),
maStartedThreads
(),
maStartNewThread
Timer
(),
maStartNewThread
Idle
(),
mbStartingOfThreadsSuspended
(
false
)
{
}
...
...
@@ -46,8 +46,8 @@ void ThreadManager::Init()
{
mpThreadListener
.
reset
(
new
ThreadListener
(
*
this
)
);
maStartNewThread
Timer
.
SetTimeout
(
2000
);
maStartNewThread
Timer
.
SetTimeout
Hdl
(
LINK
(
this
,
ThreadManager
,
TryToStartNewThread
)
);
maStartNewThread
Idle
.
SetPriority
(
VCL_IDLE_PRIORITY_LOWEST
);
maStartNewThread
Idle
.
SetIdle
Hdl
(
LINK
(
this
,
ThreadManager
,
TryToStartNewThread
)
);
}
ThreadManager
::~
ThreadManager
()
...
...
@@ -98,7 +98,7 @@ oslInterlockedCount ThreadManager::AddThread(
// setup Timer to start thread from waiting ones
if
(
maStartedThreads
.
empty
()
&&
!
maWaitingForStartThreads
.
empty
()
)
{
maStartNewThread
Timer
.
Start
();
maStartNewThread
Idle
.
Start
();
}
}
}
...
...
@@ -216,7 +216,7 @@ IMPL_LINK_NOARG(ThreadManager, TryToStartNewThread)
// setup Timer to start thread from waiting ones
if
(
maStartedThreads
.
empty
()
&&
!
maWaitingForStartThreads
.
empty
()
)
{
maStartNewThread
Timer
.
Start
();
maStartNewThread
Idle
.
Start
();
}
}
}
...
...
@@ -240,7 +240,7 @@ void ThreadManager::ResumeStartingOfThreads()
// setup Timer to start thread from waiting ones
if
(
maStartedThreads
.
empty
()
&&
!
maWaitingForStartThreads
.
empty
()
)
{
maStartNewThread
Timer
.
Start
();
maStartNewThread
Idle
.
Start
();
break
;
}
}
...
...
sw/source/core/inc/threadmanager.hxx
Dosyayı görüntüle @
35811889
...
...
@@ -123,7 +123,7 @@ class ThreadManager : public IThreadListenerOwner
std
::
deque
<
tThreadData
>
maWaitingForStartThreads
;
std
::
deque
<
tThreadData
>
maStartedThreads
;
Timer
maStartNewThreadTimer
;
Idle
maStartNewThreadIdle
;
bool
mbStartingOfThreadsSuspended
;
...
...
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