Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Pyk4a avoids GIL? #101

Closed
arudomanenko opened this issue Feb 4, 2021 · 1 comment
Closed

Is Pyk4a avoids GIL? #101

arudomanenko opened this issue Feb 4, 2021 · 1 comment

Comments

@arudomanenko
Copy link

Hi, I am writing a huge machine vision project. So I want to separate capturing frame thread and logic main thread. Is your module released GIL while working?

@shagren
Copy link
Contributor

shagren commented Feb 4, 2021

Just use thread_safe=False for most operations, It will cause GIL releasing for k4a functionality.

You can check https://github.com/etiennedub/pyk4a/blob/master/example/threads.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants