Menu

#311 GetOverlappedResult doesn't release GIL

closed-invalid
nobody
None
5
2006-11-29
2006-11-29
Sturla
No

More of the same bug, although this one doesn't deadlock:

GetOverlappedResult (win32file.i) doesn't release the GIL.

If wait is set to 1, GetOverlappedResult will block and hold the GIL until the asynchronous IO completes.

Discussion

  • Mark Hammond

    Mark Hammond - 2006-11-29
    • status: open --> closed-invalid
     
  • Mark Hammond

    Mark Hammond - 2006-11-29

    Logged In: YES
    user_id=14198
    Originator: NO

    Ditto - check the generated .cpp

    static PyObject *_wrap_GetOverlappedResult(PyObject *self, PyObject *args) {
    ...
    Py_BEGIN_ALLOW_THREADS
    _result = (BOOLAPI )GetOverlappedResult(_arg0,_arg1,_arg2,_arg3);

    Py_END_ALLOW_THREADS

     
MongoDB Logo MongoDB