diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-10-28 16:14:56 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-10-28 16:14:56 +0000 |
commit | 2aa4f50f829476ae276ba391127cc7266f603c96 (patch) | |
tree | c4fe2b70acf02ce19d199713fff6dec5645d8a93 /ace/Metrics_Cache_T.cpp | |
parent | 28934d0116426fa37e2a562cfa0d95fa34241051 (diff) | |
download | ATCD-2aa4f50f829476ae276ba391127cc7266f603c96.tar.gz |
ChangeLogTag:Fri Oct 28 00:01:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Metrics_Cache_T.cpp')
-rw-r--r-- | ace/Metrics_Cache_T.cpp | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/ace/Metrics_Cache_T.cpp b/ace/Metrics_Cache_T.cpp index de520773da7..3868df80269 100644 --- a/ace/Metrics_Cache_T.cpp +++ b/ace/Metrics_Cache_T.cpp @@ -1,14 +1,19 @@ // $Id$ -#ifndef METRICS_CACHE_CPP -#define METRICS_CACHE_CPP +#ifndef ACE_METRICS_CACHE_CPP +#define ACE_METRICS_CACHE_CPP //#define ACE_BUILD_DLL +#include "ace/Metrics_Cache_T.h" + #if defined (ACE_COMPILE_TIMEPROBES) #include "ace/Metrics_Cache.h" -#include "ace/Metrics_Cache_T.h" + +#if !defined (__ACE_INLINE__) +#include "ace/Metrics_Cache_T.inl" +#endif /* __ACE_INLINE__ */ // Const strings for timeprobe event type descriptions. @@ -20,6 +25,7 @@ static const char * event_description_strings [] = "resume" }; +ACE_BEGIN_VERSIONED_NAMESPACE_DECL ///////////////////////////////// // class ACE_Metrics_Timeprobe // @@ -58,8 +64,8 @@ ACE_Metrics_Timeprobe (ALLOCATOR *alloc, const char *name, u_long size) : - ACE_Timeprobe_Ex<ACE_LOCK, ALLOCATOR> (size), - id_ (id), + ACE_Timeprobe_Ex<ACE_LOCK, ALLOCATOR> (size), + id_ (id), name_ (0) { if (name == 0) @@ -95,11 +101,11 @@ ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::~ACE_Metrics_Timeprobe () template <class ACE_LOCK, class ALLOCATOR> int ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::is_event (const ACE_Metrics_Timeprobe<ACE_LOCK, - ALLOCATOR>:: - ACE_METRICS_TIMEPROBE_DATA_TYPE &t, + ALLOCATOR>:: + ACE_METRICS_TIMEPROBE_DATA_TYPE &t, ACE_Metrics_Timeprobe<ACE_LOCK, - ALLOCATOR>:: - event_id id) + ALLOCATOR>:: + event_id id) { return (t.event_.event_number_ == (u_long) id) ? 1 : 0; } @@ -226,16 +232,8 @@ flush_ACE_Metrics_Cache () { } - -#if !defined (__ACE_INLINE__) -#include "ace/Metrics_Cache_T.inl" -#endif /* __ACE_INLINE__ */ +ACE_END_VERSIONED_NAMESPACE_DECL #endif /* defined (ACE_COMPILE_TIMEPROBES) */ -#endif /* METRICS_CACHE_CPP */ - - - - - +#endif /* ACE_METRICS_CACHE_CPP */ |