MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / max

Method max

tests/BS_thread_pool_test.cpp:146–149  ·  view source on GitHub ↗

* @brief Returns the internal counter's maximum possible value, which in this implementation is equal to `LeastMaxValue`. * * @return The internal counter's maximum possible value. */

Source from the content-addressed store, hash-verified

144 * @return The internal counter's maximum possible value.
145 */
146 [[nodiscard]] static constexpr std::ptrdiff_t max() noexcept
147 {
148 return LeastMaxValue;
149 }
150
151 /**
152 * @brief Atomically decrements the internal counter by 1 if it is greater than 0; otherwise blocks until it is greater than 0 and can successfully decrement the internal counter.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected