threadCount
mach::App::threadCount
Returns the number of worker threads configured for the application.
Description
Section titled “Description”Returns the number of worker threads configured for the application.
Syntax
Section titled “Syntax”[[nodiscard]] std::size_t threadCount() const noexcept;Return Value
Section titled “Return Value”The configured thread count.
Exceptions
Section titled “Exceptions”This function is noexcept and does not throw exceptions.
Thread Safety
Section titled “Thread Safety”This function is thread-safe.
Example
Section titled “Example”std::size_t threadCount = app.threadCount();See Also
Section titled “See Also”| Name | Description |
|---|---|
host |
Returns the configured host. |
port |
Returns the configured port. |