Added workaround for current stability problems of the app_server: giant lock,
say hello to RootLayer. Adi will probably not like this, but that's definitely only a temporary solution :-) This little fix greatly increases app_server stability under Haiku - ie. menus are working now, the team monitor comes up regularly, etc. - how great is that? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13305 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -401,6 +401,7 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
}
|
}
|
||||||
|
|
||||||
RootLayer *myRootLayer = fWinBorder->GetRootLayer();
|
RootLayer *myRootLayer = fWinBorder->GetRootLayer();
|
||||||
|
myRootLayer->Lock();
|
||||||
|
|
||||||
switch (code) {
|
switch (code) {
|
||||||
//--------- BView Messages -----------------
|
//--------- BView Messages -----------------
|
||||||
@@ -1456,6 +1457,8 @@ myRootLayer->Unlock();
|
|||||||
_DispatchGraphicsMessage(code, link);
|
_DispatchGraphicsMessage(code, link);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
myRootLayer->Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------- Graphics messages ----------------------------------
|
// -------------------- Graphics messages ----------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user