Loading...
Searching...
No Matches
Public Member Functions | List of all members
v8::Isolate::AtomicsWaitWakeHandle Class Reference

#include <v8-isolate.h>

Public Member Functions

void Wake ()
 

Detailed Description

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

Member Function Documentation

◆ Wake()

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


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