Author: axeld Date: 2010-02-21 12:51:40 +0100 (Sun, 21 Feb 2010) New Revision: 35548 Changeset: http://dev.haiku-os.org/changeset/35548/haiku Ticket: http://dev.haiku-os.org/ticket/4709 Modified: haiku/trunk/src/servers/app/ServerWindow.cpp Log: * Reduced the maximum lock time to roughly a quantum (a little less might even be better, though). * This might help further with #4709. Modified: haiku/trunk/src/servers/app/ServerWindow.cpp =================================================================== --- haiku/trunk/src/servers/app/ServerWindow.cpp 2010-02-21 11:47:13 UTC (rev 35547) +++ haiku/trunk/src/servers/app/ServerWindow.cpp 2010-02-21 11:51:40 UTC (rev 35548) @@ -3388,9 +3388,9 @@ 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;