Skip to content

Unusual Multithreading API #5298

Description

@HumanBodyMacAndCheese

Just downloaded and built JerryScript yesterday and noticed something odd about running multiple contexts. According to my reading in the documentation, it says that you have to manually switch the currently running contexts if compiled with external contexts enabled. Is there a more ergonomic way to use different contexts* or is this engine mainly single-threaded? If not, then is it due to memory constraints?

  • I mean like using a different thread like a separate object:
    • duk_context* ctx = duk_create_heap_default(); // Duktape allows use of contexts like this, and it's also usable for microcontrollers.
    • lua_State* L = luaL_newstate(); // Ditto, but for Lua and LuaJIT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions