Struct lagoon::ThreadPoolBuilder [−][src]
pub struct ThreadPoolBuilder { /* fields omitted */ }
Expand description
A type used to configure a ThreadPool
prior to its creation.
Implementations
Configure the ThreadPool
with the given number of threads. If unspecified, the thread pool will attempt to
detect the number of hardware threads available to the process and use that. If this also fails,
ThreadPool::DEFAULT_THREAD_COUNT
will be used.
Give the threads owned by this ThreadPool
the given name. If unspecified, the default name will be the same
as those created by std::thread::spawn
.
Give the threads owned by this ThreadPool
a specific stack size. If unspecified, the default stack size
will be the same as those created by std::thread::spawn
.
Finish configuration, returning a ThreadPool
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThreadPoolBuilder
impl Send for ThreadPoolBuilder
impl Sync for ThreadPoolBuilder
impl Unpin for ThreadPoolBuilder
impl UnwindSafe for ThreadPoolBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more