From 26f4998c58a993db308c945e0869634817ad910b Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 28 Apr 1997 19:30:31 +0000 Subject: *** empty log message *** --- ace/Timer_Heap_T.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'ace/Timer_Heap_T.h') diff --git a/ace/Timer_Heap_T.h b/ace/Timer_Heap_T.h index 3c212c991f1..7c21f0bb6e1 100644 --- a/ace/Timer_Heap_T.h +++ b/ace/Timer_Heap_T.h @@ -37,7 +37,7 @@ public: ACE_Timer_Heap_Iterator_T (ACE_Timer_Heap_T &); // Constructor. - virtual int next (NODE *&timer_node, + virtual int next (ACE_Timer_Node_T *&timer_node, const ACE_Time_Value &cur_time); // Pass back the next that hasn't been seen yet, if its // <= . In addition, moves the timer queue @@ -128,27 +128,27 @@ public: // Dump the state of an object. protected: - virtual void reschedule (NODE *); + virtual void reschedule (ACE_Timer_Node_T *); // Reschedule an "interval" . - virtual ITERATOR &iter (void); + virtual ACE_Timer_Queue_Iterator_T &iter (void); // Returns a pointer to this 's iterator. - virtual NODE *alloc_node (void); + virtual ACE_Timer_Node_T *alloc_node (void); // Factory method that allocates a new node (uses operator new if // we're *not* preallocating, otherwise uses an internal freelist). - virtual void free_node (NODE *); + virtual void free_node (ACE_Timer_Node_T *); // Factory method that frees a previously allocated node (uses // operatord delete if we're *not* preallocating, otherwise uses an // internal freelist). private: - NODE *remove (size_t index); + ACE_Timer_Node_T *remove (size_t index); // Remove and return the th and restore the // heap property. - void insert (NODE *new_node); + void insert (ACE_Timer_Node_T *new_node); // Insert into the heap and restore the heap property. void grow_heap (void); @@ -156,17 +156,17 @@ private: // If preallocation is used, will also double the size of the // preallocated array of ACE_Timer_Nodes. - void reheap_up (NODE *new_node, + void reheap_up (ACE_Timer_Node_T *new_node, size_t index, size_t parent); // Restore the heap property, starting at . - void reheap_down (NODE *moved_node, + void reheap_down (ACE_Timer_Node_T *moved_node, size_t index, size_t child); // Restore the heap property, starting at . - void copy (int index, NODE *moved_node); + void copy (int index, ACE_Timer_Node_T *moved_node); // Copy into the slot of and move // into the corresponding slot in the array. @@ -191,7 +191,7 @@ private: HEAP_ITERATOR iterator_; // Iterator used to expire timers. - NODE **heap_; + ACE_Timer_Node_T **heap_; // Current contents of the Heap, which is organized as a "heap" of // *'s. In this context, a heap is a "partially // ordered, almost complete" binary tree, which is stored in an @@ -211,17 +211,17 @@ private: // "Pointer" to the first element in the freelist contained within // the array, which is organized as a stack. - NODE *preallocated_nodes_; + ACE_Timer_Node_T *preallocated_nodes_; // If this is non-0, then we preallocate number of // objects in order to reduce dynamic allocation // costs. In auto-growing implementation, this points to the // last array of nodes allocated. - NODE *preallocated_nodes_freelist_; + ACE_Timer_Node_T *preallocated_nodes_freelist_; // This points to the head of the freelist, // which is organized as a stack. - ACE_Unbounded_Set preallocated_node_set_; + ACE_Unbounded_Set *> preallocated_node_set_; // Set of pointers to the arrays of preallocated timer nodes. // Used to delete the allocated memory when required. -- cgit v1.2.1