v8  7.0.276 (node 11.14.0)
V8 is Google's open source JavaScript engine
Isolate::AtomicsWaitWakeHandle Class Reference

#include <v8.h>

Public Member Functions

void Wake ()
 

Detailed Description

Passed to |AtomicsWaitCallback| as a means of stopping an ongoing Atomics.wait call.

Definition at line 7784 of file v8.h.

Member Function Documentation

◆ Wake()

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|.


The documentation for this class was generated from the following file: