Skip to content

[fix] Create a shim class providing compat for Pool implementations #4452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frankplow
Copy link

On Windows and MacOS the multiprocess library's Pool class is used, whereas on Linux and other platforms the concurrent.futures library's ProcessPoolExecutor is used. These two classes have similar but not identical APIs. This commit introduces a shim class which adapts the API of multiprocess.Pool to be more similar to ProcessPoolExecutor.

This commit will close #4338.

On Windows and MacOS the multiprocess library's Pool class is used,
whereas on Linux and other platforms the concurrent.futures library's
ProcessPoolExecutor is used.  These two classes have similar but not
identical APIs.  This commit introduces a shim class which adapts the
API of multiprocess.Pool to be more similar to ProcessPoolExecutor.

This commit will close Ericsson#4338.
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.

CodeChecker server init: TypeError: BaseContext.Pool() unexpected argument 'max_workers'
1 participant