Skip to content

Commit

Permalink
feat(atomics): add environment variable to disable atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Dec 6, 2021
1 parent e9056ed commit c17a99e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8,132 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ This class extends [`EventEmitter`][] from Node.js.
to the task. Keep in mind that Worker threads are generally not built for
handling I/O in parallel.
* `useAtomics`: (`boolean`) Use the [`Atomics`][] API for faster communication
between threads. This is on by default.
between threads. This is on by default. You can disable `Atomics` globally by
setting the environment variable `PISCINA_DISABLE_ATOMICS` to `1`.
* `resourceLimits`: (`object`) See [Node.js new Worker options][]
* `maxOldGenerationSizeMb`: (`number`) The maximum size of each worker threads
main heap in MB.
Expand Down
Loading

0 comments on commit c17a99e

Please sign in to comment.