Kaydet (Commit) 1e95602e authored tarafından Urs Fässler's avatar Urs Fässler Kaydeden (comit) Markus Mohrhard

Translation of german comment

Change-Id: I2876e33ccfd5dd7b33747d77a4cdaaa03bd01de9
üst b60ccd4d
...@@ -180,16 +180,15 @@ sal_Int8 SAL_CALL CWinClipbImpl::getRenderingCapabilities( ) throw( RuntimeExce ...@@ -180,16 +180,15 @@ sal_Int8 SAL_CALL CWinClipbImpl::getRenderingCapabilities( ) throw( RuntimeExce
void SAL_CALL CWinClipbImpl::flushClipboard( ) throw( RuntimeException ) void SAL_CALL CWinClipbImpl::flushClipboard( ) throw( RuntimeException )
{ {
// sollte eigentlich hier stehen: ClearableMutexGuard aGuard( m_ClipContentMutex ); // actually it should be ClearableMutexGuard aGuard( m_ClipContentMutex );
// geht aber nicht, da FlushClipboard zurückruft und das DataObject // but it does not work since FlushClipboard does a callback and frees DataObject
// freigibt und damit würde es einen Deadlock in onReleaseDataObject geben // which results in a deadlock in onReleaseDataObject.
// FlushClipboard muß synchron sein, damit das runterfahren ggf. erst weitergeht, // FlushClipboard had to be synchron in order to prevent shutdown until all
// wenn alle Clipboard-Formate gerendert wurden // clipboard-formats are redered.
// die Abfrage ist nötig, damit nur geflusht wird, wenn wir wirklich Clipboardowner // The request is needed to prevent flushing if we are not clipboard owner (it is
// sind (ich weiss nicht genau was passiert, wenn man flusht und nicht Clipboard // not known what happens if we flush but aren't clipoard owner).
// owner ist). // It may be possible to move the request to the clipboard STA thread by saving the
// eventuell kann man aber die Abfrage in den Clipboard STA Thread verlagern, indem // DataObject and call OleIsCurrentClipboard bevore flushing.
// man sich dort das DataObject merkt und vor dem flushen OleIsCurrentClipboard ruft
if ( NULL != m_pCurrentClipContent ) if ( NULL != m_pCurrentClipContent )
m_MtaOleClipboard.flushClipboard( ); m_MtaOleClipboard.flushClipboard( );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment