sdk/python/Concurrency/PyThreading
Concurrency

PyThreading

Python stdlib module — threading. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Lock()Neutral
#
Signature
Lock()

allocate_lock() -> lock object

.RLock()Neutral
#
Signature
RLock(args, kwargs)

Factory function that returns a new reentrant lock.

.activeCount()Neutral
#
Signature
activeCount()

Return the number of Thread objects currently alive.

.active_count()Neutral
#
Signature
active_count()

Return the number of Thread objects currently alive.

.currentThread()Neutral
#
Signature
currentThread()

Return the current Thread object, corresponding to the caller's thread of control.

.current_thread()Neutral
#
Signature
current_thread()

Return the current Thread object, corresponding to the caller's thread of control.

.enumerate()Neutral
#
Signature
enumerate()

Return a list of all Thread objects currently alive.

.excepthook()Neutral
#
Signature
excepthook()

excepthook(exc_type, exc_value, exc_traceback, thread)

.get_ident()Neutral
#
Signature
get_ident()

get_ident() -> integer

.get_native_id()Neutral
#
Signature
get_native_id()

get_native_id() -> integer

Fully-Qualified Names

FQNField
threadingfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import threading