Skip to content

onAbort is scoped to Module and does not get called from a pthread #11345

Closed
@DConmy

Description

@DConmy

Relevant doc... https://emscripten.org/docs/api_reference/module.html

If Module['onAbort'] is set on the browser thread, given that Module is not visible to the pthread, an abort(-1) or similar will not call the onAbort function.

I would have expected that pthread creation would/could copy the onAbort handler to the pthread via threadParams so that the handling would be inherited by worker threads.

As a workaround, I plan on setting onAbort in each of our threads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions