ocaml-multicore / domainslib

Parallel Programming over Domains
ISC License
171 stars 30 forks source link

named pools & a default global pool #44

Closed Sudha247 closed 3 years ago

Sudha247 commented 3 years ago

Named pools allows storing multiple pools and referencing them later on. This would be useful for sparing certain domains for specific tasks.

This patch also introduces a global default task pool, which effectively makes pool an optional parameter in all the task functions. This aims to simplify parallel code by not having to pass around pool. It also aims to make introducing parallelism in existing codebases easier.

This is an initial cut, any opinions and ideas for improvement are welcome!

Sudha247 commented 3 years ago

Closing this in favour of a simpler solution suggested by @kayceesrk.