Skip to content

Commit

Permalink
Rename Atomics.wake to Atomics.notify
Browse files Browse the repository at this point in the history
  • Loading branch information
btzy committed Mar 25, 2021
1 parent 913e689 commit 9cd904a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jelly-bf-processhandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ JellyBFProcessHandler.prototype.executeInteractive=function(options,inputRequest
output_read_head=output_write_head;
}
Atomics.store(outputwaitint32array,WaitArrayId.READ_HEAD,output_read_head);
Atomics.wake(outputwaitint32array,WaitArrayId.READ_HEAD,1);
Atomics.notify(outputwaitint32array,WaitArrayId.READ_HEAD,1);
var newText=new TextDecoder().decode(newData);
outputCallback(newText);
};
Expand Down Expand Up @@ -129,7 +129,7 @@ JellyBFProcessHandler.prototype.executeInteractive=function(options,inputRequest
pendingInputData.shift();
}
Atomics.store(inputwaitint32array,WaitArrayId.WRITE_HEAD,input_write_head);
console.log(Atomics.wake(inputwaitint32array,WaitArrayId.WRITE_HEAD,1));
console.log(Atomics.notify(inputwaitint32array,WaitArrayId.WRITE_HEAD,1));

if(pendingInputData.length>0){
inputTimeout=setTimeout(do_input,40);
Expand Down

0 comments on commit 9cd904a

Please sign in to comment.