
Originally Posted by
qball2k5
It's really just one device, the Aardvark device, but different address to read using that device.
It doesn't matter how many devices you have, QSocketNotifier should notify you when there is something to read, but of course you need a file descriptor for this.

Originally Posted by
qball2k5
It just stops decoding, even though I can see the reads being done.
How about these?
Decoder::~Decoder()
{
waitCondition.wakeOne();
wait();
}
void Decoder
::DecodePacket( const QStringList &packet
) {
mutex.lock();
decodeQueue.enqueue(packet);
mutex.unlock();
waitCondition.wakeOne();
}
Decoder::~Decoder()
{
waitCondition.wakeOne();
wait();
}
void Decoder::DecodePacket( const QStringList &packet )
{
mutex.lock();
decodeQueue.enqueue(packet);
mutex.unlock();
waitCondition.wakeOne();
}
To copy to clipboard, switch view to plain text mode
Bookmarks