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

Function isInIOThread

src/twisted/python/threadable.py:110–112  ·  view source on GitHub ↗

Are we in the thread responsible for I/O requests (the event loop)?

()

Source from the content-addressed store, hash-verified

108
109
110def isInIOThread():
111 """Are we in the thread responsible for I/O requests (the event loop)?"""
112 return ioThread == getThreadID()
113
114
115def registerAsIOThread():

Callers 2

checkMethod · 0.90
checkMethod · 0.90

Calls 1

getThreadIDFunction · 0.85

Tested by 2

checkMethod · 0.72
checkMethod · 0.72