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
dd1243c1
Kaydet (Commit)
dd1243c1
authored
Ock 24, 2015
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix
59288cda
Change-Id: I7f3ae7814b3218a792f8989fd09d4b1642466216
üst
59288cda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
AsynchronousLink.cxx
dbaccess/source/ui/browser/AsynchronousLink.cxx
+8
-8
No files found.
dbaccess/source/ui/browser/AsynchronousLink.cxx
Dosyayı görüntüle @
dd1243c1
...
@@ -17,13 +17,13 @@
...
@@ -17,13 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <dbaccess/AsyncronousLink.hxx>
#include <dbaccess/Async
h
ronousLink.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <tools/debug.hxx>
#include <tools/debug.hxx>
// OAsyncronousLink
// OAsync
h
ronousLink
using
namespace
dbaui
;
using
namespace
dbaui
;
OAsync
ronousLink
::
OAsync
ronousLink
(
const
Link
&
_rHandler
)
OAsync
hronousLink
::
OAsynch
ronousLink
(
const
Link
&
_rHandler
)
:
m_aHandler
(
_rHandler
)
:
m_aHandler
(
_rHandler
)
,
m_aEventSafety
()
,
m_aEventSafety
()
,
m_aDestructionSafety
()
,
m_aDestructionSafety
()
...
@@ -31,7 +31,7 @@ OAsyncronousLink::OAsyncronousLink( const Link& _rHandler )
...
@@ -31,7 +31,7 @@ OAsyncronousLink::OAsyncronousLink( const Link& _rHandler )
{
{
}
}
OAsync
ronousLink
::~
OAsync
ronousLink
()
OAsync
hronousLink
::~
OAsynch
ronousLink
()
{
{
{
{
::
osl
::
MutexGuard
aEventGuard
(
m_aEventSafety
);
::
osl
::
MutexGuard
aEventGuard
(
m_aEventSafety
);
...
@@ -49,15 +49,15 @@ OAsyncronousLink::~OAsyncronousLink()
...
@@ -49,15 +49,15 @@ OAsyncronousLink::~OAsyncronousLink()
}
}
}
}
void
OAsyncronousLink
::
Call
(
void
*
_pArgument
)
void
OAsync
h
ronousLink
::
Call
(
void
*
_pArgument
)
{
{
::
osl
::
MutexGuard
aEventGuard
(
m_aEventSafety
);
::
osl
::
MutexGuard
aEventGuard
(
m_aEventSafety
);
if
(
m_nEventId
)
if
(
m_nEventId
)
Application
::
RemoveUserEvent
(
m_nEventId
);
Application
::
RemoveUserEvent
(
m_nEventId
);
m_nEventId
=
Application
::
PostUserEvent
(
LINK
(
this
,
OAsyncronousLink
,
OnAsyncCall
),
_pArgument
);
m_nEventId
=
Application
::
PostUserEvent
(
LINK
(
this
,
OAsync
h
ronousLink
,
OnAsyncCall
),
_pArgument
);
}
}
void
OAsyncronousLink
::
CancelCall
()
void
OAsync
h
ronousLink
::
CancelCall
()
{
{
::
osl
::
MutexGuard
aEventGuard
(
m_aEventSafety
);
::
osl
::
MutexGuard
aEventGuard
(
m_aEventSafety
);
if
(
m_nEventId
)
if
(
m_nEventId
)
...
@@ -65,7 +65,7 @@ void OAsyncronousLink::CancelCall()
...
@@ -65,7 +65,7 @@ void OAsyncronousLink::CancelCall()
m_nEventId
=
0
;
m_nEventId
=
0
;
}
}
IMPL_LINK
(
OAsyncronousLink
,
OnAsyncCall
,
void
*
,
_pArg
)
IMPL_LINK
(
OAsync
h
ronousLink
,
OnAsyncCall
,
void
*
,
_pArg
)
{
{
{
{
::
osl
::
MutexGuard
aDestructionGuard
(
m_aDestructionSafety
);
::
osl
::
MutexGuard
aDestructionGuard
(
m_aDestructionSafety
);
...
...
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