* Reduced the maximum lock time to roughly a quantum (a little less might even
be better, though). * This might help further with #4709. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35548 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3388,9 +3388,9 @@ ServerWindow::_MessageLooper()
|
|||||||
fDesktop->UnlockAllWindows();
|
fDesktop->UnlockAllWindows();
|
||||||
|
|
||||||
// Only process up to 70 waiting messages at once (we have the
|
// Only process up to 70 waiting messages at once (we have the
|
||||||
// Desktop locked), but don't hold the lock longer than 25 ms
|
// Desktop locked), but don't hold the lock longer than 10 ms
|
||||||
if (!receiver.HasMessages() || ++messagesProcessed > 70
|
if (!receiver.HasMessages() || ++messagesProcessed > 70
|
||||||
|| system_time() - processingStart > 25000) {
|
|| system_time() - processingStart > 10000) {
|
||||||
if (lockedDesktop)
|
if (lockedDesktop)
|
||||||
fDesktop->UnlockSingleWindow();
|
fDesktop->UnlockSingleWindow();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user