v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Public Member Functions | List of all members
v8toolkit::V8ClassWrapperInstanceRegistry Class Reference

#include <v8_class_wrapper.h>

Public Member Functions

void add_callback (v8::Isolate *isolate, func::function< void()> callback)
 
void cleanup_isolate (v8::Isolate *isolate)
 

Detailed Description

Stores a list of callbacks to clean up V8ClassWrapper objects when the associated isolate is destroyed. An isolate created after a previous isolate is destroyed may have the same address but a new wrapper must be created.

Definition at line 252 of file v8_class_wrapper.h.

Member Function Documentation

void v8toolkit::V8ClassWrapperInstanceRegistry::add_callback ( v8::Isolate *  isolate,
func::function< void()>  callback 
)
inline

Definition at line 257 of file v8_class_wrapper.h.

void v8toolkit::V8ClassWrapperInstanceRegistry::cleanup_isolate ( v8::Isolate *  isolate)
inline

Definition at line 260 of file v8_class_wrapper.h.

References v8toolkit::wrapper_registery.

Referenced by v8toolkit::Isolate::~Isolate().

Here is the caller graph for this function:


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