VirtualBox

Changeset 34336 in vbox


Ignore:
Timestamp:
Nov 24, 2010 6:36:40 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68099
Message:

crOpenGL: fix multithread host assertion

File:
1 edited

Legend:

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

    r33988 r34336  
    125125
    126126        crLockMutex(&_PackMutex);
     127
    127128        /*Make sure we process commands in order they should appear, so flush thread being injected first*/
    128129        for (i=0; i<MAX_THREADS; ++i)
     
    137138            }
    138139        }
     140
    139141        if (i>=MAX_THREADS)
    140142        {
    141             crWarning("packspu: inject for invalid client id");
     143            /*Thread we're supposed to inject commands for has been detached,
     144              so there's nothing to sync with and we should just pass commands through our own connection.
     145             */
     146            thread->netServer.conn->u32InjectClientID=0;
    142147        }
    143148        crUnlockMutex(&_PackMutex);
     
    436441    {
    437442        GET_THREAD(thread);
    438         CRASSERT(thread && thread->netServer.conn && thread->netServer.conn->type==CR_VBOXHGCM);
     443
     444        CRASSERT(thread && thread->netServer.conn && thread->netServer.conn->type==CR_VBOXHGCM && thread->bInjectThread);
    439445        thread->netServer.conn->u32InjectClientID = id;
    440446    }
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