Skip to content
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

simon/move to picos #30

Merged
merged 54 commits into from
Sep 4, 2024
Merged

simon/move to picos #30

merged 54 commits into from
Sep 4, 2024

Conversation

c-cube
Copy link
Owner

@c-cube c-cube commented Aug 29, 2024

move to picos as the foundational concurrency abstraction

  • we gain interop with other libraries
  • this removes some of our custom code (e.g. for local storage)

@c-cube c-cube marked this pull request as ready for review August 29, 2024 13:34
@c-cube c-cube force-pushed the simon/move-to-picos branch from 10fd733 to a36342d Compare August 29, 2024 13:36
Copy link

@wintersteiger wintersteiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some random comments!

moonpool.opam Show resolved Hide resolved
test/fiber/dune Outdated Show resolved Hide resolved
@@ -33,14 +34,14 @@ val shutdown_without_waiting : t -> unit

exception Shutdown

val run_async : ?ls:Task_local_storage.t -> t -> task -> unit
val run_async : ?fiber:fiber -> t -> task -> unit
(** [run_async pool f] schedules [f] for later execution on the runner
in one of the threads. [f()] will run on one of the runner's
worker threads/domains.
@param ls if provided, run the task with this initial local storage

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstring comment for ?fiber missing here and in the following functions.

src/core/dune Show resolved Hide resolved
src/core/moonpool.mli Show resolved Hide resolved
src/core/worker_loop_.ml Outdated Show resolved Hide resolved
src/core/ws_pool.ml Outdated Show resolved Hide resolved
src/core/ws_pool.ml Show resolved Hide resolved
src/core/ws_pool.ml Show resolved Hide resolved
src/fib/fiber.mli Show resolved Hide resolved
@c-cube c-cube force-pushed the simon/move-to-picos branch from fd11e1c to 7df8c06 Compare August 30, 2024 13:43
@c-cube c-cube merged commit 9b3c751 into main Sep 4, 2024
4 checks passed
@c-cube c-cube deleted the simon/move-to-picos branch September 4, 2024 16:04
c-cube added a commit to c-cube/opam-repository that referenced this pull request Sep 10, 2024
CHANGES:

- add `Moonpool_fiber.spawn_top_ignore`
- add `moonpool-io`, based on `picos_io` (still very experimental)
- move to picos as the foundation layer for concurrency primitives (c-cube/moonpool#30)
- move to `thread-local-storage` 0.2 with get/set API
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.

2 participants