ThreadPool

constructor()

Allocate a new ThreadPool.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new ThreadPool using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(userData: <Error class: unknown class>, exclusive: Boolean)

Allocate a new ThreadPool.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

userData

the user data for the threads of this pool

exclusive

are all threads exclusive to this pool


constructor(userData: <Error class: unknown class>, exclusive: Boolean, scope: <Error class: unknown class>)

Allocate a new ThreadPool using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

userData

the user data for the threads of this pool

exclusive

are all threads exclusive to this pool

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)