Struct tdengine::ThreadPool [] [src]

pub struct ThreadPool { /* fields omitted */ }

Methods

impl ThreadPool
[src]

Construct a threadpool with the given number of threads. Minimum value is 1.

Returns the number of threads inside this pool.

Executes the function job on a thread in the pool.

Returns the number of currently active threads.

Returns the number of created threads

Sets the number of threads to use as threads. Can be used to change the threadpool size during runtime