Skip to content

num_domains argument in setup_pool #13

Closed
@kayceesrk

Description

@kayceesrk

Task.setup_pool takes the number of additional domains as the argument and sets up the pool. See for example

https://github.com/ocaml-multicore/domainslib/blob/master/test/game_of_life_multicore.ml#L65

I found this a little unintuitive as num_domains seems to suggest that the pool would contain num_domains domains. For example, a pool with 2 domains is created with

T.setup_pool ~num_domains:1 

Should we change the semantics such that num_domains actually refers to the number of domains in the pool, and not the number of additional domains?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions