VirtualBox

Ignore:
Timestamp:
Jul 31, 2011 11:18:57 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73227
Message:

crOpenGL: missing commit for r72917, fix thread sync issues

File:
1 edited

Legend:

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

    r37216 r38244  
    163163    ContextInfo *context;
    164164    WindowInfo *window;
     165    BOOL ret;
     166
     167    crHashtableLock(stub.windowTable);
     168    crHashtableLock(stub.contextTable);
    165169
    166170    context = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc);
     
    172176    }
    173177
    174     return stubMakeCurrent( window, context );
     178    ret = stubMakeCurrent( window, context );
     179
     180    crHashtableUnlock(stub.contextTable);
     181    crHashtableUnlock(stub.windowTable);
     182
     183    return ret;
    175184}
    176185
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