Dummy implementation of _thread.get_ident(). Since this module should only be used when _threadmodule is not available, it is safe to assume that the current process is the only thread. Thus a constant can be safely returned.
()
| 134 | |
| 135 | |
| 136 | def get_ident(): |
| 137 | """Dummy implementation of _thread.get_ident(). |
| 138 | |
| 139 | Since this module should only be used when _threadmodule is not |
| 140 | available, it is safe to assume that the current process is the |
| 141 | only thread. Thus a constant can be safely returned. |
| 142 | """ |
| 143 | return _MAIN_THREAD_IDENT |
| 144 | |
| 145 | |
| 146 | def allocate_lock(): |
no outgoing calls
no test coverage detected