On Wed, Jul 28, 2010 at 7:12 AM, Marcus Meissner <marcus@...> wrote:
> libgphoto2 will just start returning errors when the camera is removed.
>
> It would be quite hard in a single threaded library to find out the
> camera removal by above means.
Exactly. You should create separate threads for each camera with a
kind of command queue which checks if the camera is responding
correctly and if not, call your trigger or do something appropriate
like reconnect.
Best,
Andreas
|