VirtualBox

Changeset 22829 in vbox for trunk/src/libs/xpcom18a4/python


Ignore:
Timestamp:
Sep 8, 2009 9:24:56 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52056
Message:

Python bridge: disabled half-baked USE_EVENTQUEUE code, put potentially blocking code under appropriate macro

File:
1 edited

Legend:

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

    r22724 r22829  
    493493
    494494#ifdef VBOX
    495 #define USE_EVENTQUEUE  1
     495//#define USE_EVENTQUEUE  1
    496496
    497497# ifdef USE_EVENTQUEUE
     
    639639
    640640# ifdef USE_EVENTQUEUE
    641   int rc = com::EventQueue::processThreadEventQueue(aTimeout < 0 ? RT_INDEFINITE_WAIT : (uint32_t)aTimeout);
     641  int rc;
     642 
     643  Py_BEGIN_ALLOW_THREADS;
     644  rc = com::EventQueue::processThreadEventQueue(aTimeout < 0 ? RT_INDEFINITE_WAIT : (uint32_t)aTimeout);
     645  Py_END_ALLOW_THREADS;
     646 
    642647  if (RT_SUCCESS(rc))
    643648      return PyInt_FromLong(0);
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