V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
|
#include <v8.h>
Public Member Functions | |
void | Wake () |
Passed to |AtomicsWaitCallback| as a means of stopping an ongoing Atomics.wait
call.
void v8::Isolate::AtomicsWaitWakeHandle::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|.