23 .arg(m_Name).
HEXARG(
this).arg(m_Queue.size()));
30 .arg(m_Name).
HEXARG(
this).arg(m_Queue.size()));
37 QMutexLocker lock(&m_Lock);
39 while (!m_Queue.isEmpty()) {
40 QSharedPointer<T> img = m_Queue.dequeue();
50 QMutexLocker lock(&m_Lock);
52 if (m_Queue.isEmpty()) {
57 return QSharedPointer<T>(NULL);
59 QSharedPointer<T> res = m_Queue.dequeue();
63 .
HEXARG(res.data()).arg(m_Name).arg(m_Queue.size()));
73 QMutexLocker lock(&m_Lock);
75 if (n < 0 || n >= m_Queue.size()) {
76 return QSharedPointer<T>(NULL);
85 QMutexLocker lock(&m_Lock);
89 .
HEXARG(data.data()).arg(m_Name).arg(m_Queue.size()));
93 m_Queue.enqueue(data);
100 QMutexLocker lock(&m_Lock);
104 .arg(m_Queue.size()).arg(m_Name));
107 return m_Queue.size();
qint64 qcepDebug(int cond)
QSharedPointer< T > operator[](int n)
QQueue< QSharedPointer< T > > m_Queue
QSharedPointer< T > dequeue()
void enqueue(QSharedPointer< T > data)
QSharedPointer< QcepSettingsSaver > QcepSettingsSaverPtr
QcepImageQueue(QString name)
virtual void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())=0
QcepApplication * g_Application