I'm working on a little project that uses DirectShow/COM for capture, and DShow makes callbacks using its own threads when my application gets imaging data.
I'm also using Qt in my project, and I'm wanting to use Qt for synchronisation and thread-safety. I'm wondering how I can use Qt Threads in this case.
I understand I can also use Win32's CriticalSection functions, but this would make it harder to port my code to other platforms (as the DShow stuff is the only Windows-specific code in my project).
My question is: "how do I use Qt's thread safety features when working with non-Qt threads?"