MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / _get_thread_id

Function _get_thread_id

tensorlayer/logging/tl_logging.py:254–259  ·  view source on GitHub ↗

Get id of current thread, suitable for logging as an unsigned quantity.

()

Source from the content-addressed store, hash-verified

252
253
254def _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

Callers 1

google2_log_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…