Hi, all:

I’ve got a class which has a producer thread and a consumer thread. I would like the producer thread keeps producing the image data, and whenever the consumer thread is consuming the image data from the shared buffer, a signal will be sent out to the MainWindow GUI, for the purpose of redraw the image on GUI —- this signal/slot is of Qt::BlockingQueuedConnection for sure.

However, I’ve got no idea why this doesn’t work for me now (no image has ever been drawn on the MainWindow GUI). I guess it’s probably because, the signal sent out to the MainWindow GUI is embedded inside the critical section — the consumer thread lock the critical shared buffer using a mutex, and I sent out the signal from within this locked mutex section to the MainWindow GUI. Is this problematic? And is there a way out for my issue?

Cheers
Pei