v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
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
 
PersistentNodeGetNodeSafe () const
 
void SetNodeSafe (PersistentNode *value) 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.

Member Function Documentation

◆ ClearFromGC()

void ClearFromGC ( ) const
inline

◆ GetNodeFromGC()

PersistentNode * GetNodeFromGC ( ) const
inline

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

References PersistentBase::node_.

◆ GetNodeSafe()

◆ SetNodeSafe()

void SetNodeSafe ( PersistentNode value) const
inline

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

References PersistentBase::node_.

Referenced by CrossThreadPersistentBase::ClearFromGC().

◆ 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: