Skip to content

thread safe? #47

Closed
Closed
@kattunga

Description

@kattunga

Hi,

I'm interested in use python4delphi in a multi threaded environment, more specifically in an Indy TCP Server.
I need to execute python scripts inside threads in a high concurrent environment.

Looking at source code, I found that gPythonEngine is a global variable so obviously I can't have more that one PythonEngine at the same time in my application.

Is TPythonEngine thread safe?
If yes, how should be the right way to implement python4delphi in a threaded application?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions