VirtualBox

Changeset 38754 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Sep 14, 2011 5:36:15 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74028
Message:

Main: prevent incorrect exiting of async event thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/EventQueue.cpp

    r33720 r38754  
    3030#include <iprt/time.h>
    3131#include <iprt/thread.h>
     32#include <iprt/log.h>
    3233#ifdef USE_XPCOM_QUEUE
    3334# include <errno.h>
     
    341342    else
    342343    {
     344        static uint32_t s_ErrorCount = 0;
     345        if (s_ErrorCount < 500)
     346        {
     347            LogRel(("waitForEventsOnXPCOM rc=%d errno=%d\n", rc, errno));
     348            ++s_ErrorCount;
     349        }
     350
    343351        AssertMsgFailed(("rc=%d errno=%d\n", rc, errno));
    344352        rc = VERR_INTERNAL_ERROR_4;
     
    511519
    512520    if (  (   RT_SUCCESS(rc)
    513            || rc == VERR_INTERRUPTED)
     521           || rc == VERR_INTERRUPTED
     522           || rc == VERR_TIMEOUT)
    514523        && mInterrupted)
    515524    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette