Struct rna_algos::utils::Pool[][src]

pub struct Pool { /* fields omitted */ }
Expand description

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

Implementations

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

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.

Returns the number of threads inside this pool.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.