VirtualBox

Changeset 65841 in vbox


Ignore:
Timestamp:
Feb 22, 2017 4:49:54 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113609
Message:

PyXPCOM/PyGBase.cpp: experimental deadlock workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/PyGBase.cpp

    r59809 r65841  
    288288                piswrap = pis;
    289289        } else {
     290                /* HACK ALERT! Dropping the python interpreter lock here while
     291                   doing QueryInterface because it may involve IPC to a python
     292                   object in the same interpreter and deadlock.  Not at all
     293                   sure if this is a good idea or not for the internal PyXPCOM
     294                   state, but it might fix the deadloock... Hoping for the best. */
     295                Py_BEGIN_ALLOW_THREADS();
    290296                iid_check = NS_GET_IID(nsISupports);
    291297                pis->QueryInterface(iid_check, getter_AddRefs(piswrap));
     298                Py_END_ALLOW_THREADS();
    292299        }
    293300
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