MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / close_handle

Method close_handle

pydevd_attach_to_process/winappdbg/thread.py:297–311  ·  view source on GitHub ↗

Closes the handle to the thread. @note: Normally you don't need to call this method. All handles created by I{WinAppDbg} are automatically closed when the garbage collector claims them.

(self)

Source from the content-addressed store, hash-verified

295 self.hThread = hThread
296
297 def close_handle(self):
298 """
299 Closes the handle to the thread.
300
301 @note: Normally you don't need to call this method. All handles
302 created by I{WinAppDbg} are automatically closed when the garbage
303 collector claims them.
304 """
305 try:
306 if hasattr(self.hThread, "close"):
307 self.hThread.close()
308 elif self.hThread not in (None, win32.INVALID_HANDLE_VALUE):
309 win32.CloseHandle(self.hThread)
310 finally:
311 self.hThread = None
312
313 def get_handle(self, dwDesiredAccess=win32.THREAD_ALL_ACCESS):
314 """

Callers 3

open_handleMethod · 0.95
clearMethod · 0.95
close_thread_handlesMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected