Get id of current thread, suitable for logging as an unsigned quantity.
()
| 252 | |
| 253 | |
| 254 | def _get_thread_id(): |
| 255 | """Get id of current thread, suitable for logging as an unsigned quantity.""" |
| 256 | # pylint: disable=protected-access |
| 257 | thread_id = six.moves._thread.get_ident() |
| 258 | # pylint:enable=protected-access |
| 259 | return thread_id & _THREAD_ID_MASK |
| 260 | |
| 261 | |
| 262 | _log_prefix = google2_log_prefix |
no outgoing calls
no test coverage detected
searching dependent graphs…