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