more s/wake/notify

This commit is contained in:
Leo Balter 2018-06-28 16:26:44 -04:00 committed by Rick Waldron
parent d8bbc281dd
commit 1452a22a02
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ features: [Atomics, SharedArrayBuffer, TypedArray]
const WAIT_INDEX = 0; // Index all agents are waiting on
const RUNNING = 1;
const NUMAGENT = 2; // Total number of agents started
const WAKECOUNT = 2; // Total number of agents to notify up
const NOTIFYCOUNT = 2; // Total number of agents to notify up
$262.agent.start(`
$262.agent.receiveBroadcast(function(sab) {
@ -55,9 +55,9 @@ $262.agent.waitUntil(i32a, RUNNING, NUMAGENT);
$262.agent.tryYield();
assert.sameValue(
Atomics.notify(i32a, WAIT_INDEX, WAKECOUNT),
WAKECOUNT,
'Atomics.notify(i32a, WAIT_INDEX, WAKECOUNT) returns the value of `WAKECOUNT` (2)'
Atomics.notify(i32a, WAIT_INDEX, NOTIFYCOUNT),
NOTIFYCOUNT,
'Atomics.notify(i32a, WAIT_INDEX, NOTIFYCOUNT) returns the value of `NOTIFYCOUNT` (2)'
);
const reports = [];