#include <OgreHapticsConcurrentQueue.h>
Public Member Functions | |
HazardPtr () | |
Standard constructor. | |
virtual | ~HazardPtr () |
Virtual destructor. | |
Protected Attributes | |
int | active |
Is the hazard pointer still active, ie. | |
HazardPtr * | next |
Pointer to the next hazard pointer used in the single linked list. | |
Node * | hazards [2] |
Array of pointers to Nodes which are marked as hazardous. | |
NodeList | retiredList |
List of by the owner thread retired nodes, marked for reclaimation. | |
Friends | |
class | ConcurrentQueue |
Definition at line 107 of file OgreHapticsConcurrentQueue.h.
OgreHaptics::ConcurrentQueue< T >::HazardPtr::HazardPtr | ( | ) |
Standard constructor.
Definition at line 113 of file OgreHapticsConcurrentQueue.h.
References OgreHaptics::ConcurrentQueue< T >::HazardPtr::hazards.
virtual OgreHaptics::ConcurrentQueue< T >::HazardPtr::~HazardPtr | ( | ) | [virtual] |
friend class ConcurrentQueue [friend] |
Definition at line 110 of file OgreHapticsConcurrentQueue.h.
int OgreHaptics::ConcurrentQueue< T >::HazardPtr::active [protected] |
Is the hazard pointer still active, ie.
can it be used again? A 32-bit integer is needed for compare-and-swap.
Definition at line 125 of file OgreHapticsConcurrentQueue.h.
HazardPtr* OgreHaptics::ConcurrentQueue< T >::HazardPtr::next [protected] |
Pointer to the next hazard pointer used in the single linked list.
Definition at line 128 of file OgreHapticsConcurrentQueue.h.
Referenced by OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::allocateHazardPtr(), and OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::~ConcurrentQueue().
Node* OgreHaptics::ConcurrentQueue< T >::HazardPtr::hazards[2] [protected] |
Array of pointers to Nodes which are marked as hazardous.
At most two hazards are present in the queue routines.
Definition at line 131 of file OgreHapticsConcurrentQueue.h.
Referenced by OgreHaptics::ConcurrentQueue< T >::HazardPtr::HazardPtr().
NodeList OgreHaptics::ConcurrentQueue< T >::HazardPtr::retiredList [protected] |
List of by the owner thread retired nodes, marked for reclaimation.
Definition at line 134 of file OgreHapticsConcurrentQueue.h.
Referenced by OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::~ConcurrentQueue().
Last modified Tue Jan 6 22:31:25 2009