Struct scoped_threadpool::Pool [] [src]

pub struct Pool { /* fields omitted */ }

A threadpool that acts as a handle to a number of threads spawned at construction.

Methods

impl Pool
[src]

[src]

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

[src]

Borrows the pool and allows executing jobs on other threads during that scope via the argument of the closure.

This method will block until the closure and all its jobs have run to completion.

[src]

Returns the number of threads inside this pool.

Trait Implementations

impl Drop for Pool
[src]

[src]

Executes the destructor for this type. Read more