mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
doc
This commit is contained in:
parent
b7ba8d0e9b
commit
4147d29383
2 changed files with 9 additions and 1 deletions
|
|
@ -5,6 +5,14 @@
|
||||||
A pool within a bigger pool (ie the ocean). Here, we're talking about
|
A pool within a bigger pool (ie the ocean). Here, we're talking about
|
||||||
pools of `Thread.t` which live within a fixed pool of `Domain.t`.
|
pools of `Thread.t` which live within a fixed pool of `Domain.t`.
|
||||||
|
|
||||||
|
This fixed pool of domains is shared between *all* the pools in moonpool.
|
||||||
|
The rationale is that we should not have more domains than cores, so
|
||||||
|
it's easier to pre-allocate exactly that many domains, and run more flexible
|
||||||
|
thread pools on top.
|
||||||
|
|
||||||
|
In addition, `Moonpool.Fut` provides futures/promises that execute
|
||||||
|
on these thread pools. The futures are thread safe.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The user can create several thread pools. These pools use regular posix threads,
|
The user can create several thread pools. These pools use regular posix threads,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(** Thread pool *)
|
(** Thread pool. *)
|
||||||
|
|
||||||
type t
|
type t
|
||||||
(** A pool of threads. *)
|
(** A pool of threads. *)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue