Public Member Functions | Private Attributes | List of all members
DotRunnerQueue Class Reference

#include <dot.h>

Public Member Functions

void enqueue (DotRunner *runner)
 
DotRunnerdequeue ()
 
uint count () const
 

Private Attributes

QWaitCondition m_bufferNotEmpty
 
QQueue< DotRunnerm_queue
 
QMutex m_mutex
 

Detailed Description

Queue of dot jobs to run.

Definition at line 429 of file dot.h.

Member Function Documentation

uint DotRunnerQueue::count ( ) const

Definition at line 1179 of file dot.cpp.

1180 {
1181  QMutexLocker locker(&m_mutex);
1182  return m_queue.count();
1183 }
QQueue< DotRunner > m_queue
Definition: dot.h:437
uint count() const
Definition: qqueue.h:56
QMutex m_mutex
Definition: dot.h:438
DotRunner * DotRunnerQueue::dequeue ( )

Definition at line 1167 of file dot.cpp.

1168 {
1169  QMutexLocker locker(&m_mutex);
1170  while (m_queue.isEmpty())
1171  {
1172  // wait until something is added to the queue
1174  }
1176  return result;
1177 }
type * dequeue()
Definition: qqueue.h:59
static QCString result
Definition: dot.h:356
QQueue< DotRunner > m_queue
Definition: dot.h:437
bool isEmpty() const
Definition: qqueue.h:57
QMutex m_mutex
Definition: dot.h:438
QWaitCondition m_bufferNotEmpty
Definition: dot.h:436
void wait(QMutex *mutex)
void DotRunnerQueue::enqueue ( DotRunner runner)

Definition at line 1160 of file dot.cpp.

1161 {
1162  QMutexLocker locker(&m_mutex);
1163  m_queue.enqueue(runner);
1165 }
void enqueue(const type *d)
Definition: qqueue.h:58
QQueue< DotRunner > m_queue
Definition: dot.h:437
QMutex m_mutex
Definition: dot.h:438
QWaitCondition m_bufferNotEmpty
Definition: dot.h:436

Member Data Documentation

QWaitCondition DotRunnerQueue::m_bufferNotEmpty
private

Definition at line 436 of file dot.h.

QMutex DotRunnerQueue::m_mutex
mutableprivate

Definition at line 438 of file dot.h.

QQueue<DotRunner> DotRunnerQueue::m_queue
private

Definition at line 437 of file dot.h.


The documentation for this class was generated from the following files: