v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
CrossThreadPersistentBase Class Reference

#include <cross-thread-persistent.h>

Inheritance diagram for CrossThreadPersistentBase:
Collaboration diagram for CrossThreadPersistentBase:

Public Member Functions

 CrossThreadPersistentBase ()=default
 
 CrossThreadPersistentBase (const void *raw)
 
 V8_CLANG_NO_SANITIZE ("address") const void *GetValueFromGC() const
 
PersistentNodeGetNodeFromGC () const
 
void ClearFromGC () const
 

Additional Inherited Members

- Protected Member Functions inherited from PersistentBase
 PersistentBase ()=default
 
 PersistentBase (const void *raw)
 
const void * GetValue () const
 
void SetValue (const void *value)
 
PersistentNodeGetNode () const
 
void SetNode (PersistentNode *node)
 
void ClearFromGC () const
 
- Protected Attributes inherited from PersistentBase
const void * raw_ = nullptr
 
PersistentNodenode_ = nullptr
 

Detailed Description

Definition at line 22 of file cross-thread-persistent.h.

Constructor & Destructor Documentation

◆ CrossThreadPersistentBase() [1/2]

◆ CrossThreadPersistentBase() [2/2]

CrossThreadPersistentBase ( const void *  raw)
inlineexplicit

Definition at line 25 of file cross-thread-persistent.h.

References PersistentBase::PersistentBase().

Member Function Documentation

◆ ClearFromGC()

void ClearFromGC ( ) const
inline

Definition at line 35 of file cross-thread-persistent.h.

References PersistentBase::node_, and PersistentBase::raw_.

◆ GetNodeFromGC()

PersistentNode* GetNodeFromGC ( ) const
inline

Definition at line 32 of file cross-thread-persistent.h.

References PersistentBase::node_.

◆ V8_CLANG_NO_SANITIZE()

V8_CLANG_NO_SANITIZE ( "address"  ) const
inline

Definition at line 27 of file cross-thread-persistent.h.

References PersistentBase::raw_.


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