Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
104
def
getThreadID():
105
if
threadingmodule is None:
106
return
_dummyID
107
return
threadingmodule.current_thread().ident
108
109
110
def
isInIOThread():
Callers
13
result
Method · 0.90
application
Method · 0.90
cbRendered
Method · 0.90
write
Method · 0.90
setResponseCode
Method · 0.90
logPrefix
Method · 0.90
occurred
Method · 0.90
connectionLost
Method · 0.90
test_addEvent
Method · 0.90
test_disconnectedOnError
Method · 0.90
test_disconnectOnReturnValue
Method · 0.90
isInIOThread
Function · 0.85
Calls
no outgoing calls
Tested by
11
result
Method · 0.72
application
Method · 0.72
cbRendered
Method · 0.72
write
Method · 0.72
setResponseCode
Method · 0.72
logPrefix
Method · 0.72
occurred
Method · 0.72
connectionLost
Method · 0.72
test_addEvent
Method · 0.72
test_disconnectedOnError
Method · 0.72
test_disconnectOnReturnValue
Method · 0.72