Skip to content

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

Open
frankplow wants to merge 1 commit into
Ericsson:masterfrom
frankplow:shim-pool-api
Open

[fix] Create a shim class providing compat for Pool implementations#4452
frankplow wants to merge 1 commit into
Ericsson:masterfrom
frankplow:shim-pool-api

Conversation

@frankplow

Copy link
Copy Markdown

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