-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #516 from pR0Ps/bugfix/workerthread-name
Before this patch, the `ThreadPool.start` and `ThreadPool.grow` functions both added threads to the pool, but both implemented their own versions that were similar, but not exactly the same. This change refactors the `ThreadPool.start()` function to use `ThreadPool.grow()` to create the initial workers, reducing code duplication. It also adds some error checking that was not previously there, and unit tests to exercise them.
- Loading branch information
Showing
3 changed files
with
123 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters