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
81ec6912
Kaydet (Commit)
81ec6912
authored
Eyl 26, 2008
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CWS-TOOLING: integrate CWS i93512_DEV300
üst
fb9fea37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
salframeview.mm
vcl/aqua/source/window/salframeview.mm
+29
-2
No files found.
vcl/aqua/source/window/salframeview.mm
Dosyayı görüntüle @
81ec6912
...
...
@@ -383,9 +383,37 @@ static const struct ExceptionalKey
return mpFrame ? (mpFrame->getClipPath() != 0 ? NO : YES) : YES;
}
// helper class similar to a vos::OGuard for the SalYieldMutex
// the difference is that it only does tryToAcquire instead of aquire
// so dreaded deadlocks like #i93512# are prevented
class TryGuard
{
public:
TryGuard() { mbGuarded = ImplSalYieldMutexTryToAcquire(); }
~TryGuard() { if( mbGuarded ) ImplSalYieldMutexRelease(); }
bool IsGuarded() { return mbGuarded; }
private:
bool mbGuarded;
};
-(void)drawRect: (NSRect)aRect
{
YIELD_GUARD;
// HOTFIX: #i93512# prevent deadlocks if any other thread already has the SalYieldMutex
TryGuard aTryGuard;
if( !aTryGuard.IsGuarded() )
{
// NOTE: the mpFrame access below is not guarded yet!
// TODO: mpFrame et al need to be guarded by an independent mutex
AquaSalGraphics* pGraphics = (mpFrame && AquaSalFrame::isAlive(mpFrame)) ? mpFrame->mpGraphics : NULL;
if( pGraphics )
{
// we did not get the mutex so we cannot draw now => request to redraw later
// convert the NSRect to a CGRect for Refreshrect()
const CGRect aCGRect = {{aRect.origin.x,aRect.origin.y},{aRect.size.width,aRect.size.height}};
pGraphics->RefreshRect( aCGRect );
}
return;
}
if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
{
...
...
@@ -395,7 +423,6 @@ static const struct ExceptionalKey
if( mpFrame->getClipPath() )
[mpFrame->getWindow() invalidateShadow];
}
}
}
...
...
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