VirtualBox

Changeset 30487 in vbox


Ignore:
Timestamp:
Jun 29, 2010 1:06:35 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: disable new tracking code for compiz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r30486 r30487  
    754754    const char *app_id;
    755755    int i;
     756    int disable_sync = 0;
    756757
    757758    if (stub_initialized)
     
    762763    crGetProcName(response, 1024);
    763764    crDebug("Stub launched for %s", response);
     765
     766#if defined(CR_NEWWINTRACK) && !defined(WINDOWS)
     767    /*@todo when vm boots with compiz turned on, new code causes hang in xcb_wait_for_reply in the sync thread*/
     768    if (!crStrcmp(response, "compiz") || !crStrcmp(response, "compiz_real"))
     769    {
     770        disable_sync = 1;
     771    }
     772#endif
    764773
    765774    /* @todo check if it'd be of any use on other than guests, no use for windows */
     
    852861        RTR3Init();
    853862
    854         crDebug("Starting sync thread");
    855 
    856         rc = RTThreadCreate(&stub.hSyncThread, stubSyncThreadProc, NULL, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "Sync");
    857         if (RT_FAILURE(rc))
    858         {
    859             crError("Failed to start sync thread! (%x)", rc);
    860         }
    861         RTThreadUserWait(stub.hSyncThread, 60 * 1000);
    862         RTThreadUserReset(stub.hSyncThread);
    863 
    864         crDebug("Going on");
     863        if (!disable_sync)
     864        {
     865            crDebug("Starting sync thread");
     866
     867            rc = RTThreadCreate(&stub.hSyncThread, stubSyncThreadProc, NULL, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "Sync");
     868            if (RT_FAILURE(rc))
     869            {
     870                crError("Failed to start sync thread! (%x)", rc);
     871            }
     872            RTThreadUserWait(stub.hSyncThread, 60 * 1000);
     873            RTThreadUserReset(stub.hSyncThread);
     874
     875            crDebug("Going on");
     876        }
    865877    }
    866878#endif
Note: See TracChangeset for help on using the changeset viewer.

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