-
I have been developing a project for a while now (color conversions and dithering), and I wanted to assess the performance of each project by creating a separate thread. One thread for the raw input, one thread for a filter, and one thread for dithering. This is how I implement that: (side note, the
Demo class implementation:
Where the second parameter of constructor of the I sometimes have some success running all of these three simultaneously (see video) progress.mp4However, I sometimes stumble upon an access violation exception, stating that the .dll file I can mitigate the issue by creating another synchronized method that contains the grabber.grab() function, but I still wonder why on some occassions it works, but sometimes it doesn't. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Some video drivers don't like to be called from different threads. It's not really a synchronization issue, just don't use the grabber from multiple threads. |
Beta Was this translation helpful? Give feedback.
Some video drivers don't like to be called from different threads. It's not really a synchronization issue, just don't use the grabber from multiple threads.