v8
10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
|
#include <v8-isolate.h>
Public Member Functions | |
void | Wake () |
Passed to |AtomicsWaitCallback| as a means of stopping an ongoing Atomics.wait
call.
Definition at line 1001 of file v8-isolate.h.
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|.