Changeset 52803 in webkit


Ignore:
Timestamp:
Jan 5, 2010 10:14:35 AM (14 years ago)
Author:
Adam Roben
Message:

Don't hang in WebKitAPITest if no messages have been posted

Part of <http://webkit.org/b/33212> Small fixes/improvements to
WebKitAPITest

Reviewed by Sam Weinig.

  • WebKitAPITest/tests/WebViewDestruction.cpp:

(WebKitAPITest::runMessagePump): Use PeekMessage instead of GetMessage
to avoid hanging if no messages have been posted.

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r52802 r52803  
     12010-01-05  Adam Roben  <aroben@apple.com>
     2
     3        Don't hang in WebKitAPITest if no messages have been posted
     4
     5        Part of <http://webkit.org/b/33212> Small fixes/improvements to
     6        WebKitAPITest
     7
     8        Reviewed by Sam Weinig.
     9
     10        * WebKitAPITest/tests/WebViewDestruction.cpp:
     11        (WebKitAPITest::runMessagePump): Use PeekMessage instead of GetMessage
     12        to avoid hanging if no messages have been posted.
     13
    1142010-01-05  Adam Roben  <aroben@apple.com>
    215
  • trunk/WebKitTools/WebKitAPITest/tests/WebViewDestruction.cpp

    r52802 r52803  
    6969    MSG msg;
    7070    BOOL result;
    71     while ((result = GetMessage(&msg, 0, 0, 0)) && GetTickCount() - startTickCount <= timeoutMilliseconds) {
     71    while ((result = PeekMessageW(&msg, 0, 0, 0, PM_REMOVE)) && GetTickCount() - startTickCount <= timeoutMilliseconds) {
    7272        if (result == -1)
    7373            break;
Note: See TracChangeset for help on using the changeset viewer.