TBB

class TBB(*args, **kwargs)

Threading parameters.

By default the number of threads is the value associated to the parallel-threads key in ResourceMap.

Methods

Disable()

Disable threading.

Enable()

Enable threading.

GetNumberOfThreads()

Accessor to the maximum number of TBB threads.

IsAvailable()

Ask whether threading support is available.

SetNumberOfThreads(numberOfThreads)

Accessor to the maximum number of TBB threads.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

static Disable()

Disable threading.

static Enable()

Enable threading.

static GetNumberOfThreads()

Accessor to the maximum number of TBB threads.

Returns
n_threadsint

Maximum number of TBB threads.

static IsAvailable()

Ask whether threading support is available.

Returns
availablebool

Whether threading support is available.

static SetNumberOfThreads(numberOfThreads)

Accessor to the maximum number of TBB threads.

Parameters
n_threadsint

Maximum number of TBB threads.