Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
11
my-app/node_modules/piscina/test/fixtures/wait-for-others.ts
generated
vendored
Executable file
11
my-app/node_modules/piscina/test/fixtures/wait-for-others.ts
generated
vendored
Executable file
|
@ -0,0 +1,11 @@
|
|||
import { threadId } from 'worker_threads';
|
||||
|
||||
module.exports = async function ([i32array, n]) {
|
||||
Atomics.add(i32array, 0, 1);
|
||||
Atomics.notify(i32array, 0, Infinity);
|
||||
let lastSeenValue;
|
||||
while ((lastSeenValue = Atomics.load(i32array, 0)) < n) {
|
||||
Atomics.wait(i32array, 0, lastSeenValue);
|
||||
}
|
||||
return threadId;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue