Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Add a 'finalize' callback for C++ modules (symmetric to 'init') #3147

@jcgagnon

Description

@jcgagnon

In some case (like threading / synchronization issues on Windows), C++ modules need to do some cleanup before the DLL gets unloaded per say (and before stdlib's atexit() ).

In such cases, it would be handy if we could register for some sort of "finalize" callback. It's possible that "process.on('exit')" could work, however I'm not sure that it's easy to use for a C++ only module (?).

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