VirtualBox

Changeset 15759 in vbox


Ignore:
Timestamp:
Dec 25, 2008 3:57:37 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: partial fix for multithreaded guest apps (3457)

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/net.c

    r15709 r15759  
    293293void crNetNewClient( CRConnection *conn, CRNetServer *ns )
    294294{
     295    /*
    295296    unsigned int len = sizeof(CRMessageNewClient);
    296297    CRMessageNewClient msg;
     
    304305
    305306    crNetSend( conn, NULL, &msg, len );
     307    */
     308
    306309    crNetServerConnect( ns );
    307310}
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r15707 r15759  
    902902void crVBoxHGCMTearDown(void)
    903903{
    904     int32_t i;
     904    int32_t i, cCons;
    905905
    906906    if (!g_crvboxhgcm.initialized) return;
    907907
    908     for (i=0; i<g_crvboxhgcm.num_conns; i++)
    909     {
    910         crNetDisconnect(g_crvboxhgcm.conns[i]);
    911     }
     908    /* Connection count would be changed while we disconnect link, also the array of connections would be shifted*/
     909    cCons = g_crvboxhgcm.num_conns;
     910    for (i=0; i<cCons; i++)
     911    {
     912        crNetDisconnect(g_crvboxhgcm.conns[0]);
     913    }
     914    CRASSERT(0==g_crvboxhgcm.num_conns);
    912915
    913916#ifdef CHROMIUM_THREADSAFE
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py

    r15758 r15759  
    360360            return temp->num_values;
    361361    }
    362     crError( "Invalid pname to __numValues: 0x%x\\n", (int) pname );
     362    crWarning( "Invalid pname to __numValues: 0x%x\\n", (int) pname );
    363363    return 0;
    364364}
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_stream.c

    r15758 r15759  
    544544crServerRecv( CRConnection *conn, CRMessage *msg, unsigned int len )
    545545{
     546    CRMessage *pRealMsg;
    546547    (void) len;
    547548
    548     switch( msg->header.type )
     549    pRealMsg = (msg->header.type!=CR_MESSAGE_REDIR_PTR) ? msg : (CRMessage*) msg->redirptr.pMessage;
     550
     551    switch( pRealMsg->header.type )
    549552    {
    550553        /* Called when using multiple threads */
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