[pywin32-checkins] pywin32/win32/src win32gui.i,1.118,1.119
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-11 00:18:00
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22357/win32/src Modified Files: win32gui.i Log Message: Release GIL when calling RegisterDeviceNotification and EnumPropsExW Index: win32gui.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v retrieving revision 1.118 retrieving revision 1.119 diff -C2 -d -r1.118 -r1.119 *** win32gui.i 30 Jun 2008 12:53:08 -0000 1.118 --- win32gui.i 11 Nov 2008 00:17:55 -0000 1.119 *************** *** 7380,7385 **** callback_objects[0]=callback; callback_objects[1]=callback_data; ! ! if (!EnumPropsExW(hwnd, PyEnumPropsExCallback, (LPARAM)callback_objects)){ if (!PyErr_Occurred()) PyWin_SetAPIError("EnumPropsEx"); --- 7380,7388 ---- callback_objects[0]=callback; callback_objects[1]=callback_data; ! BOOL ok; ! Py_BEGIN_ALLOW_THREADS ! ok = EnumPropsExW(hwnd, PyEnumPropsExCallback, (LPARAM)callback_objects); ! Py_END_ALLOW_THREADS ! if (!ok){ if (!PyErr_Occurred()) PyWin_SetAPIError("EnumPropsEx"); *************** *** 7423,7427 **** (int)struct_bytes, (int)nbytes); // @pyseeapi RegisterDeviceNotification ! HDEVNOTIFY not = RegisterDeviceNotification(handle, (void *)filter, flags); if (not == NULL) return PyWin_SetAPIError("RegisterDeviceNotification"); --- 7426,7433 ---- (int)struct_bytes, (int)nbytes); // @pyseeapi RegisterDeviceNotification ! HDEVNOTIFY not; ! Py_BEGIN_ALLOW_THREADS ! not = RegisterDeviceNotification(handle, (void *)filter, flags); ! Py_END_ALLOW_THREADS if (not == NULL) return PyWin_SetAPIError("RegisterDeviceNotification"); |