summaryrefslogtreecommitdiff
path: root/ace/Timer_List_T.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /ace/Timer_List_T.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/Timer_List_T.h')
-rw-r--r--ace/Timer_List_T.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/ace/Timer_List_T.h b/ace/Timer_List_T.h
index c77ea71d7be..191803fd228 100644
--- a/ace/Timer_List_T.h
+++ b/ace/Timer_List_T.h
@@ -5,13 +5,13 @@
//
// = LIBRARY
// ace
-//
+//
// = FILENAME
// Timer_List_T.h
//
// = AUTHOR
-// Doug Schmidt
-//
+// Doug Schmidt
+//
// ============================================================================
#ifndef ACE_TIMER_LIST_T_H
@@ -20,7 +20,7 @@
#include "ace/Timer_Queue_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
+# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// Forward declaration.
@@ -35,7 +35,7 @@ class ACE_Timer_List_Iterator_T : public ACE_Timer_Queue_Iterator_T <TYPE, FUNCT
//
// = DESCRIPTION
// This is a generic iterator that can be used to visit every
- // node of a timer queue.
+ // node of a timer queue.
public:
ACE_Timer_List_Iterator_T (ACE_Timer_List_T<TYPE, FUNCTOR, ACE_LOCK> &);
// Constructor.
@@ -65,7 +65,7 @@ protected:
template <class TYPE, class FUNCTOR, class ACE_LOCK>
class ACE_Timer_List_T : public ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK>
{
- // = TITLE
+ // = TITLE
// Provides a simple implementation of timers.
//
// = DESCRIPTION
@@ -81,7 +81,7 @@ class ACE_Timer_List_T : public ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK>
// heap-based callout queue. For most applications, the
// <ACE_Timer_Heap> will perform substantially faster than the
// <ACE_Timer_List>.
-public:
+public:
typedef ACE_Timer_List_Iterator_T<TYPE, FUNCTOR, ACE_LOCK> LIST_ITERATOR;
// Type of iterator
@@ -89,10 +89,10 @@ public:
// Iterator is a friend
typedef ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK> INHERITED;
- // Type inherited from
+ // Type inherited from
// = Initialization and termination methods.
- ACE_Timer_List_T (FUNCTOR *upcall_functor = 0,
+ ACE_Timer_List_T (FUNCTOR *upcall_functor = 0,
ACE_Free_List<ACE_Timer_Node_T <TYPE> > *freelist = 0);
// Default constructor. <upcall_functor> is the instance of the
// FUNCTOR to be used by the list. If <upcall_functor> is 0, a
@@ -108,10 +108,10 @@ public:
virtual const ACE_Time_Value &earliest_time (void) const;
// Returns the time of the earlier node in the <ACE_Timer_List>.
- virtual long schedule (const TYPE &type,
- const void *act,
- const ACE_Time_Value &delay,
- const ACE_Time_Value &interval = ACE_Time_Value::zero);
+ virtual long schedule (const TYPE &type,
+ const void *act,
+ const ACE_Time_Value &delay,
+ const ACE_Time_Value &interval = ACE_Time_Value::zero);
// Schedule <type> that will expire after <delay> amount of time.
// If it expires then <act> is passed in as the value to the
// <functor>. If <interval> is != to <ACE_Time_Value::zero> then it
@@ -126,14 +126,14 @@ public:
// valid <timer_id>).
virtual int cancel (const TYPE &type,
- int dont_call_handle_close = 1);
+ int dont_call_handle_close = 1);
// Cancel all timer associated with <type>. If <dont_call> is 0
// then the <functor> will be invoked. Returns number of timers
// cancelled.
virtual int cancel (long timer_id,
- const void **act = 0,
- int dont_call_handle_close = 1);
+ const void **act = 0,
+ int dont_call_handle_close = 1);
// Cancel the single timer that matches the <timer_id> value (which
// was returned from the <schedule> method). If act is non-NULL
// then it will be set to point to the ``magic cookie'' argument
@@ -152,7 +152,7 @@ public:
// Dump the state of an object.
virtual void reschedule (ACE_Timer_Node_T<TYPE> *);
- // Reschedule an "interval" <ACE_Timer_Node>. This should be private
+ // Reschedule an "interval" <ACE_Timer_Node>. This should be private
// but for now it needs to be public for <ACE_Timer_Hash_T>
virtual ACE_Timer_Node_T<TYPE> *get_first (void);
@@ -167,7 +167,7 @@ protected:
// operator delete).
*/
private:
- ACE_Timer_Node_T<TYPE> *head_;
+ ACE_Timer_Node_T<TYPE> *head_;
// Pointer to linked list of <ACE_Timer_Handles>.
LIST_ITERATOR *iterator_;