* 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:
parent
d6d0e010f4
commit
606105c62c
@ -3388,9 +3388,9 @@ ServerWindow::_MessageLooper()
|
||||
fDesktop->UnlockAllWindows();
|
||||
|
||||
// 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
|
||||
|| system_time() - processingStart > 25000) {
|
||||
|| system_time() - processingStart > 10000) {
|
||||
if (lockedDesktop)
|
||||
fDesktop->UnlockSingleWindow();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user