Skip to content
Download

threadCount

mach::App::threadCount

Returns the number of worker threads configured for the application.

Returns the number of worker threads configured for the application.

[[nodiscard]] std::size_t threadCount() const noexcept;

The configured thread count.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

std::size_t threadCount = app.threadCount();
Name Description
host Returns the configured host.
port Returns the configured port.