Skip to content

Commit

Permalink
Wait wake example html updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nidin committed Nov 29, 2018
1 parent ba56ef1 commit cbaa786
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions examples/atomic-wait-wake/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,17 @@ <h1>
case "inited":{
readyCount++;
if(readyCount === 2) {
// workers[0].postMessage({ command: "wait", value: 1 });
// setTimeout(() => {
// workers[1].postMessage({ command: "wake", value: 1 });
// }, 1000)
// setTimeout(() => {
// workers[0].postMessage({ command: "wait_js", value: 1 });
// }, 2000)
// setTimeout(() => {
// workers[1].postMessage({ command: "wake", value: 2 });
// }, 3000)
workers[0].postMessage({ command: "wait", value: 1 });
setTimeout(() => {
workers[1].postMessage({ command: "wake", value: 1 });
}, 1000)

setTimeout(() => {
workers[0].postMessage({ command: "wait_js", value: 1 });
}, 1500)
setTimeout(() => {
workers[1].postMessage({ command: "wake", value: 2 });
}, 3000)
// setTimeout(() => {
// workers[0].postMessage({ command: "wait_i64", value: 1 });
// }, 0)
Expand All @@ -109,10 +110,10 @@ <h1>
// }, 1000)
setTimeout(() => {
workers[0].postMessage({ command: "wait", value: 1 });
}, 0)
// setTimeout(() => {
// workers[1].postMessage({ command: "wake", value: 2 });
// }, 1000)
}, 3500)
setTimeout(() => {
workers[1].postMessage({ command: "wake_js", value: 2 });
}, 5000)
}
break;
}
Expand Down

0 comments on commit cbaa786

Please sign in to comment.