This issue was identified during a Codex code review.
basic_thread_pool(0) creates an active work guard but no worker threads. The pool reports that it is running and accepts tasks, but those tasks can never execute.
Reject zero with a clear exception, or explicitly define another useful behavior. Add tests for construction, task submission, and shutdown.
This issue was identified during a Codex code review.
basic_thread_pool(0)creates an active work guard but no worker threads. The pool reports that it is running and accepts tasks, but those tasks can never execute.Reject zero with a clear exception, or explicitly define another useful behavior. Add tests for construction, task submission, and shutdown.