jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
362 stars 59 forks source link

Thread gp_camera_init #59

Closed henrybetts closed 5 years ago

henrybetts commented 6 years ago

Hi Jim,

Occasionally I have a situation where gp_camera_init takes a long time to return (sometimes 10+ seconds). At the moment this is blocking all other python threads.

Would it be ok to mark gp_camera_init as threaded? Happy to make a pull request.

Thanks, Henry

jim-easterbrook commented 6 years ago

Good point, and one I should have picked up myself. No need for a PR, it's a trivial change I'll do in the next minute or two.