[pywin32-checkins] pywin32/win32/src win32gui.i, 1.118.2.2, 1.118.2.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-11 00:20:29
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22479/win32/src Modified Files: Tag: py3k 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.2.2 retrieving revision 1.118.2.3 diff -C2 -d -r1.118.2.2 -r1.118.2.3 *** win32gui.i 11 Sep 2008 07:44:23 -0000 1.118.2.2 --- win32gui.i 11 Nov 2008 00:20:25 -0000 1.118.2.3 *************** *** 7443,7448 **** callback_objects[0]=callback; callback_objects[1]=callback_data; ! ! if (!EnumPropsExW(hwnd, PyEnumPropsExCallback, (LPARAM)callback_objects)){ if (!PyErr_Occurred()) PyWin_SetAPIError("EnumPropsEx"); --- 7443,7451 ---- 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"); *************** *** 7486,7490 **** (int)struct_bytes, (int)nbytes); // @pyseeapi RegisterDeviceNotification ! HDEVNOTIFY not = RegisterDeviceNotification(handle, (void *)filter, flags); if (not == NULL) return PyWin_SetAPIError("RegisterDeviceNotification"); --- 7489,7496 ---- (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"); |