OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
ObjQueue< T > Class Template Reference

Queue of objects. More...

Public Member Functions

 ObjQueue ()
 
void add (T *item)
 item becomes MINE! More...
 
T * next ()
 becomes YOURS! More...
 

Protected Attributes

QueueEntry< T * > * head
 
Threads::Lock lock_
 
QueueEntry< T * > * tail
 

Detailed Description

template<class T>
class ObjQueue< T >

Queue of objects.

<>

Constructor & Destructor Documentation

◆ ObjQueue()

template<class T >
ObjQueue< T >::ObjQueue ( )
inline

Member Function Documentation

◆ add()

template<class T >
void ObjQueue< T >::add ( T *  item)
inline

item becomes MINE!

◆ next()

template<class T >
T* ObjQueue< T >::next ( )
inline

becomes YOURS!

Member Data Documentation

◆ head

template<class T >
QueueEntry<T*>* ObjQueue< T >::head
protected

◆ lock_

template<class T >
Threads::Lock ObjQueue< T >::lock_
protected

◆ tail

template<class T >
QueueEntry<T*>* ObjQueue< T >::tail
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024