genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
502 stars 86 forks source link

Resolving #289 #290

Closed blaine141 closed 2 years ago

blaine141 commented 2 years ago

Resolving #289 by not blocking on the queue.get to release the mutex as soon as possible and adding a time.sleep to guarantee the thread yields control. I believe this is functionally equivalent to the code that already existed but gives up the mutex while waiting.

blaine141 commented 2 years ago

I just tested this on hardware and it resolves the problem

kazunarikudo commented 2 years ago

@blaine141 Hi again Blaine, thank you for the fix. I need to confess that I have not yet fully prepared tests for this use case. Anyway, I highly appreciate that. Regards, Kazunari.