Poco::JS::Core

class PooledIsolate

File Information

Library: JS/Core
Package: Execution
Header: Poco/JS/Core/PooledIsolate.h

Member Summary

Member Functions: fromIsolate, isolate, objectTemplate, onNearHeapLimit

Types Aliases

Pool

using Pool = Poco::ObjectPool < PooledIsolate >;

Enumerations

Anonymous

MINIMUM_MEMORY_LIMIT = 8 * 1024 * 1024

Constructors

PooledIsolate

explicit PooledIsolate(
    Poco::UInt64 memoryLimit
);

Creates the PooledIsolate with the given memoryLimit.

Destructor

~PooledIsolate

~PooledIsolate();

Destroys the PooledIsolate.

Member Functions

fromIsolate static

static PooledIsolate * fromIsolate(
    v8::Isolate * pIsolate
);

Returns the PooledIsolate for the given Isolate.

isolate inline

v8::Isolate * isolate() const;

Returns the underlying v8::Isolate.

objectTemplate

v8::Persistent < v8::ObjectTemplate > & objectTemplate(
    const std::string & name
);

Returns the persistent handle for the object template with the given name.

onNearHeapLimit protected static

static std::size_t onNearHeapLimit(
    void * data,
    std::size_t currentHeapLimit,
    std::size_t initialHeapLimit
);

Securely control IoT edge devices from anywhere   Connect a Device