-
Notifications
You must be signed in to change notification settings - Fork 14
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
some question about Multi-threading #231
Comments
Which version of zivid-python are you using? ( |
this is my easy test demo with threading belowed
|
When capturing, the interface of my pyqt will also become very stiff, but I have already placed it in a sub thread for execution |
Aha, actually there is no released version of zivid-python that supports multithreading. So you have two options now:
|
So the lower version is compatible, right? I would also like to know the underlying cause of this bug, as I happen to be learning about multithreading and multiprocessing. Why does this thread affect other threads? |
Not sure what you mean. The latest version on PyPI is As to why it failed: The issue is that we would apply the Global Interpreter Lock ("GIL") whenever some work was passed to the Zivid SDK. This locks all threads. See here for more details: #222 |
I mean, the lower version can use threading, right?
thank you very much indeed |
You mean if 2.8.0.2.9.0 can use threading? Sorry, no :) |
I understand. Thank you again (my English is not very good (●'◡'●)) |
When I was developing using Python, I didn't want to block opening the camera or collecting data, so I placed the connection camera in a sub thread. However, I don't know why, the entire process is blocked, so connecting the camera shouldn't take up a lot of resources, right? But why is the entire process blocked?
The text was updated successfully, but these errors were encountered: