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:
Axel Dörfler 2005-06-28 03:23:16 +00:00
parent 276aa135a7
commit a87826801c

View File

@ -401,6 +401,7 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
}
RootLayer *myRootLayer = fWinBorder->GetRootLayer();
myRootLayer->Lock();
switch (code) {
//--------- BView Messages -----------------
@ -1456,6 +1457,8 @@ myRootLayer->Unlock();
_DispatchGraphicsMessage(code, link);
break;
}
myRootLayer->Unlock();
}
// -------------------- Graphics messages ----------------------------------