Avoid to on-by-one in worker function. (#285)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 22 Mar 2021 10:58:03 +0000 (11:58 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Mar 2021 10:58:03 +0000 (11:58 +0100)
commit6e9d10db05ac2bbc85373195a5c885d2492fee61
tree127f7e5d8ebe4675717b68eb7944ea7b3d006b4d
parent46eec6ddf0904bb757d333c364885f1f6980caeb
Avoid to on-by-one in worker function. (#285)
12 files changed:
benchmarks/internal/cluster/worker.js
benchmarks/internal/thread/worker.js
benchmarks/versus-external-pools/functions/function-to-bench.js
src/pools/abstract-pool.ts
src/pools/cluster/fixed.ts
src/pools/thread/fixed.ts
src/utils.ts [new file with mode: 0644]
src/worker/abstract-worker.ts
src/worker/cluster-worker.ts
src/worker/thread-worker.ts
tests/worker-files/cluster/testWorker.js
tests/worker-files/thread/testWorker.js