v8
7.0.276 (node 11.14.0)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
void | Wake () |
Passed to |AtomicsWaitCallback| as a means of stopping an ongoing Atomics.wait
call.
void Wake | ( | ) |
Stop this Atomics.wait()
call and call the |AtomicsWaitCallback| with |kAPIStopped|.
This function may be called from another thread. The caller has to ensure through proper synchronization that it is not called after the finishing |AtomicsWaitCallback|.
Note that the ECMAScript specification does not plan for the possibility of wakeups that are neither coming from a timeout or an Atomics.wake()
call, so this may invalidate assumptions made by existing code. The embedder may accordingly wish to schedule an exception in the finishing |AtomicsWaitCallback|.