Changeset 39719 in vbox
- Timestamp:
- Jan 7, 2012 2:51:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp
r39718 r39719 514 514 # include <iprt/err.h> 515 515 516 static PyObject *516 static PyObject * 517 517 PyXPCOMMethod_WaitForEvents(PyObject *self, PyObject *args) 518 518 { 519 PRInt32 aTimeout; 520 521 if (!PyArg_ParseTuple(args, "i", &aTimeout)) 522 { 523 PyErr_SetString(PyExc_TypeError, "the timeout argument is not an integer"); 519 long lTimeout; 520 if (!PyArg_ParseTuple(args, "l", &lTimeout)) 524 521 return NULL; 525 }526 522 527 523 int rc; … … 535 531 536 532 Py_BEGIN_ALLOW_THREADS 537 rc = aEventQ->processEventQueue(aTimeout < 0 ? RT_INDEFINITE_WAIT : (uint32_t)aTimeout); 533 534 RTMSINTERVAL cMsTimeout = (RTMSINTERVAL)lTimeout; 535 if (lTimeout < 0 || (long)cMsTimeout != lTimeout) 536 cMsTimeout = RT_INDEFINITE_WAIT; 537 rc = aEventQ->processEventQueue(cMsTimeout); 538 538 539 Py_END_ALLOW_THREADS 539 540 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.