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
ab14edef
Kaydet (Commit)
ab14edef
authored
Kas 17, 2014
tarafından
Tobias Madl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
changed Timer tp idle
Change-Id: Ia3e76239ba98530547e057bebfda767ad684730b
üst
5163d6b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
asynclink.hxx
include/svtools/asynclink.hxx
+4
-4
asynclink.cxx
svtools/source/control/asynclink.cxx
+9
-9
No files found.
include/svtools/asynclink.hxx
Dosyayı görüntüle @
ab14edef
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include <tools/link.hxx>
#include <tools/link.hxx>
#include <osl/mutex.hxx>
#include <osl/mutex.hxx>
class
Timer
;
class
Idle
;
struct
ImplSVEvent
;
struct
ImplSVEvent
;
namespace
svtools
{
namespace
svtools
{
...
@@ -34,7 +34,7 @@ class SVT_DLLPUBLIC AsynchronLink
...
@@ -34,7 +34,7 @@ class SVT_DLLPUBLIC AsynchronLink
{
{
Link
_aLink
;
Link
_aLink
;
ImplSVEvent
*
_nEventId
;
ImplSVEvent
*
_nEventId
;
Timer
*
_pTimer
;
Idle
*
_pIdle
;
bool
_bInCall
;
bool
_bInCall
;
bool
*
_pDeleted
;
bool
*
_pDeleted
;
void
*
_pArg
;
void
*
_pArg
;
...
@@ -47,7 +47,7 @@ public:
...
@@ -47,7 +47,7 @@ public:
AsynchronLink
(
const
Link
&
rLink
)
AsynchronLink
(
const
Link
&
rLink
)
:
_aLink
(
rLink
)
:
_aLink
(
rLink
)
,
_nEventId
(
0
)
,
_nEventId
(
0
)
,
_p
Timer
(
0
)
,
_p
Idle
(
0
)
,
_bInCall
(
false
)
,
_bInCall
(
false
)
,
_pDeleted
(
0
)
,
_pDeleted
(
0
)
,
_pArg
(
0
)
,
_pArg
(
0
)
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
{}
{}
AsynchronLink
()
AsynchronLink
()
:
_nEventId
(
0
)
:
_nEventId
(
0
)
,
_p
Timer
(
0
)
,
_p
Idle
(
0
)
,
_bInCall
(
false
)
,
_bInCall
(
false
)
,
_pDeleted
(
0
)
,
_pDeleted
(
0
)
,
_pArg
(
0
)
,
_pArg
(
0
)
...
...
svtools/source/control/asynclink.cxx
Dosyayı görüntüle @
ab14edef
...
@@ -46,7 +46,7 @@ bAllowDoubles
...
@@ -46,7 +46,7 @@ bAllowDoubles
{
{
_pArg
=
pObj
;
_pArg
=
pObj
;
DBG_ASSERT
(
bAllowDoubles
||
DBG_ASSERT
(
bAllowDoubles
||
(
!
_nEventId
&&
(
!
_p
Timer
||
!
_pTimer
->
IsActive
()
)
),
(
!
_nEventId
&&
(
!
_p
Idle
||
!
_pIdle
->
IsActive
()
)
),
"Schon ein Call unterwegs"
);
"Schon ein Call unterwegs"
);
if
(
_nEventId
)
if
(
_nEventId
)
{
{
...
@@ -54,17 +54,17 @@ bAllowDoubles
...
@@ -54,17 +54,17 @@ bAllowDoubles
Application
::
RemoveUserEvent
(
_nEventId
);
Application
::
RemoveUserEvent
(
_nEventId
);
if
(
_pMutex
)
_pMutex
->
release
();
if
(
_pMutex
)
_pMutex
->
release
();
}
}
if
(
_p
Timer
)
_pTimer
->
Stop
();
if
(
_p
Idle
)
_pIdle
->
Stop
();
if
(
bUseTimer
)
if
(
bUseTimer
)
{
{
if
(
!
_p
Timer
)
if
(
!
_p
Idle
)
{
{
_p
Timer
=
new
Timer
;
_p
Idle
=
new
Idle
;
_p
Timer
->
SetTimeout
(
0
);
_p
Idle
->
SetPriority
(
VCL_IDLE_PRIORITY_HIGHEST
);
_p
Timer
->
SetTimeout
Hdl
(
STATIC_LINK
(
_p
Idle
->
SetIdle
Hdl
(
STATIC_LINK
(
this
,
AsynchronLink
,
HandleCall
)
);
this
,
AsynchronLink
,
HandleCall
)
);
}
}
_p
Timer
->
Start
();
_p
Idle
->
Start
();
}
}
else
else
{
{
...
@@ -81,7 +81,7 @@ AsynchronLink::~AsynchronLink()
...
@@ -81,7 +81,7 @@ AsynchronLink::~AsynchronLink()
{
{
Application
::
RemoveUserEvent
(
_nEventId
);
Application
::
RemoveUserEvent
(
_nEventId
);
}
}
delete
_p
Timer
;
delete
_p
Idle
;
if
(
_pDeleted
)
*
_pDeleted
=
true
;
if
(
_pDeleted
)
*
_pDeleted
=
true
;
delete
_pMutex
;
delete
_pMutex
;
}
}
...
@@ -104,7 +104,7 @@ void AsynchronLink::ClearPendingCall()
...
@@ -104,7 +104,7 @@ void AsynchronLink::ClearPendingCall()
_nEventId
=
0
;
_nEventId
=
0
;
}
}
if
(
_pMutex
)
_pMutex
->
release
();
if
(
_pMutex
)
_pMutex
->
release
();
if
(
_p
Timer
)
_pTimer
->
Stop
();
if
(
_p
Idle
)
_pIdle
->
Stop
();
}
}
void
AsynchronLink
::
Call_Impl
(
void
*
pArg
)
void
AsynchronLink
::
Call_Impl
(
void
*
pArg
)
...
...
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