mxnet.npx.threading

Thread module emulating a subset of Java’s threading model.

Functions

RLock(\*args, \*\*kwargs) Factory function that returns a new reentrant lock.
activeCount() Return the number of Thread objects currently alive.
active_count() Return the number of Thread objects currently alive.
currentThread() Return the current Thread object, corresponding to the caller’s thread of control.
current_thread() Return the current Thread object, corresponding to the caller’s thread of control.
enumerate() Return a list of all Thread objects currently alive.
main_thread() Return the main thread object.
setprofile(func) Set a profile function for all threads started from the threading module.
settrace(func) Set a trace function for all threads started from the threading module.

Classes

Barrier(parties[, action, timeout]) Implements a Barrier.
BoundedSemaphore([value]) Implements a bounded semaphore.
Condition([lock]) Class that implements a condition variable.
Event() Class implementing event objects.
Semaphore([value]) This class implements semaphore objects.
Thread([group, target, name, args, kwargs, …]) A class that represents a thread of control.
Timer(interval, function[, args, kwargs]) Call a function after a specified number of seconds:

Exceptions

BrokenBarrierError