Skip to content

Option to release the GIL for all CLR methods #2681

@dbrownems

Description

@dbrownems

We (Microsoft Fabric) use pythonet in the context of Fabric notebooks to interop with our existing .NET libraries. The threading wiki suggests releasing the GIL from C#, but we're not writing new C# code, just calling existing libraries, and these libraries never call back into python.

Would it be possible to have an option to ask pythonnet to relase the GIL before calling a .NET method?

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