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

Method get_wait_chain

pydevd_attach_to_process/winappdbg/thread.py:1048–1063  ·  view source on GitHub ↗

@rtype: tuple of ( list of L{win32.WaitChainNodeInfo} structures, bool) @return: Wait chain for the thread. The boolean indicates if there's a cycle in the chain (a deadlock). @raise AttributeError: This

(self)

Source from the content-addressed store, hash-verified

1046 return seh_chain
1047
1048 def get_wait_chain(self):
1049 """
1050 @rtype:
1051 tuple of (
1052 list of L{win32.WaitChainNodeInfo} structures,
1053 bool)
1054 @return:
1055 Wait chain for the thread.
1056 The boolean indicates if there's a cycle in the chain (a deadlock).
1057 @raise AttributeError:
1058 This method is only suppported in Windows Vista and above.
1059 @see:
1060 U{http://msdn.microsoft.com/en-us/library/ms681622%28VS.85%29.aspx}
1061 """
1062 with win32.OpenThreadWaitChainSession() as hWct:
1063 return win32.GetThreadWaitChain(hWct, ThreadId=self.get_tid())
1064
1065 def get_stack_range(self):
1066 """

Callers

nothing calls this directly

Calls 1

get_tidMethod · 0.95

Tested by

no test coverage detected