27 : value( item ), next( 0 ) {}
60 if ( !head )
return 0;
63 T* value = head->value;
69 if ( !head ) tail = 0;
108 if ( empty() )
return 0;
111 T value = head->value;
117 if ( !head ) tail = 0;
QueueEntry(T item)
Definition: queue.h:26
Locks the lock, shutting out access from other threads if needed.
Definition: threadlock.h:85
QueueEntry< T > * head
Definition: queue.h:125
TypeQueue()
Definition: queue.h:90
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
QueueEntry< T * > * tail
Definition: queue.h:77
bool empty()
Definition: queue.h:104
ObjQueue()
Definition: queue.h:42
QueueEntry< T > * tail
Definition: queue.h:126
Queue of objects.
Definition: queue.h:39
QueueEntry< T > * next
Definition: queue.h:30
QueueEntry< T * > * head
Definition: queue.h:76
T * next()
becomes YOURS!
Definition: queue.h:58
One single queue entry.
Definition: queue.h:23
Queue of basic data types.
Definition: queue.h:87
T next()
Definition: queue.h:106
void add(T item)
Definition: queue.h:92
#define mClass(module)
Definition: commondefs.h:164
void add(T *item)
item becomes MINE!
Definition: queue.h:45
Threads::Lock lock_
Definition: queue.h:123
Threads::Lock lock_
Definition: queue.h:74
T value
Definition: queue.h:29