MCPcopy Create free account
hub / github.com/twisted/twisted / getThreadID

Function getThreadID

src/twisted/python/threadable.py:104–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103
104def getThreadID():
105 if threadingmodule is None:
106 return _dummyID
107 return threadingmodule.current_thread().ident
108
109
110def isInIOThread():

Callers 13

resultMethod · 0.90
applicationMethod · 0.90
cbRenderedMethod · 0.90
writeMethod · 0.90
setResponseCodeMethod · 0.90
logPrefixMethod · 0.90
occurredMethod · 0.90
connectionLostMethod · 0.90
test_addEventMethod · 0.90
isInIOThreadFunction · 0.85

Calls

no outgoing calls

Tested by 11

resultMethod · 0.72
applicationMethod · 0.72
cbRenderedMethod · 0.72
writeMethod · 0.72
setResponseCodeMethod · 0.72
logPrefixMethod · 0.72
occurredMethod · 0.72
connectionLostMethod · 0.72
test_addEventMethod · 0.72