Skip to content

Refactor thread management and configuration - #53

Open
Katze719 wants to merge 2 commits into
mainfrom
stronger-typing
Open

Refactor thread management and configuration#53
Katze719 wants to merge 2 commits into
mainfrom
stronger-typing

Conversation

@Katze719

Copy link
Copy Markdown
Owner
  • Introduced worker_count class to encapsulate worker count logic and validation.
  • Updated thread_view to utilize new backend and control mechanisms for thread management.
  • Enhanced thread configuration with explicit methods for setting scheduling and affinity.
  • Replaced direct integer usage for worker counts and scheduling values with strong types.
  • Added tests for new worker count validation and thread configuration behaviors.
  • Updated existing tests to align with new API changes and ensure correctness.

- Introduced `worker_count` class to encapsulate worker count logic and validation.
- Updated `thread_view` to utilize new backend and control mechanisms for thread management.
- Enhanced thread configuration with explicit methods for setting scheduling and affinity.
- Replaced direct integer usage for worker counts and scheduling values with strong types.
- Added tests for new worker count validation and thread configuration behaviors.
- Updated existing tests to align with new API changes and ensure correctness.
- Updated thread_config accessors to use consistent naming conventions (get_name, get_scheduling, get_affinity).
- Removed default constructor and validity check from thread_id, enforcing positive thread IDs.
- Enhanced thread_pool with clearer accessor names and improved shutdown handling.
- Introduced global_registry_binding for scoped management of thread_registry, replacing use_global_registry.
- Updated integration tests to reflect changes in registry binding and thread management.
- Refactored callable tests to align with new error callback structure.
- Improved advanced API tests to validate new thread pool behaviors and configurations.
- Ensured compatibility with C++20 features, including jthread and std::variant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant