[pywin32-checkins] pywin32/pyisapi/isapi threaded_extension.py,1.1,1.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-09-04 09:36:58
|
Update of /cvsroot/pywin32/pywin32/pyisapi/isapi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7051 Modified Files: threaded_extension.py Log Message: Close the completion port handle on terminate. Delegate to base-class to setup the flags/description. Index: threaded_extension.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/pyisapi/isapi/threaded_extension.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** threaded_extension.py 1 Sep 2004 03:07:11 -0000 1.1 --- threaded_extension.py 4 Sep 2004 09:36:49 -0000 1.2 *************** *** 2,6 **** import isapi.simple from win32file import GetQueuedCompletionStatus, CreateIoCompletionPort, \ ! PostQueuedCompletionStatus from win32security import SetThreadToken from win32event import INFINITE --- 2,6 ---- import isapi.simple from win32file import GetQueuedCompletionStatus, CreateIoCompletionPort, \ ! PostQueuedCompletionStatus, CloseHandle from win32security import SetThreadToken from win32event import INFINITE *************** *** 58,62 **** def GetExtensionVersion(self, vi): ! vi.ExtensionDesc = self.__doc__ # As per Q192800, the CompletionPort should be created with the number # of processors, even if the number of worker threads is much larger. --- 58,62 ---- def GetExtensionVersion(self, vi): ! isapi.simple.SimpleExtension.GetExtensionVersion(self, vi) # As per Q192800, the CompletionPort should be created with the number # of processors, even if the number of worker threads is much larger. *************** *** 84,87 **** --- 84,88 ---- worker.join(self.worker_shutdown_wait) self.dispatch_map = {} # break circles + CloseHandle(self.io_req_port) # This is the one operation the base class supports - a simple |