Skip to content

Reject or define basic_thread_pool construction with zero threads #11

Description

@vshalygin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions