diff options
-rw-r--r-- | ace/Timeprobe.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ace/Timeprobe.h b/ace/Timeprobe.h index d910f9f251c..061376dee8d 100644 --- a/ace/Timeprobe.h +++ b/ace/Timeprobe.h @@ -85,14 +85,18 @@ typedef ACE_Timeprobe<ACE_TIMEPROBE_MUTEX> // their own instance of ACE_Timerprobe, without interfering with each // other. # if defined (ACE_TSS_TIMEPROBES) -#define ACE_TIMEPROBE_SINGLETON \ +#define ACE_TIMEPROBE_SINGLETON_DEFINE \ ACE_TSS_Singleton<ACE_TIMEPROBE_WITH_LOCKING, ACE_SYNCH_NULL_MUTEX>; +typedef ACE_TSS_Singleton<ACE_TIMEPROBE_WITH_LOCKING, ACE_SYNCH_NULL_MUTEX> + ACE_TIMEPROBE_SINGLETON; # else /* ACE_TSS_TIMEPROBES */ -#define ACE_TIMEPROBE_SINGLETON \ +#define ACE_TIMEPROBE_SINGLETON_DEFINE \ ACE_Singleton<ACE_TIMEPROBE_WITH_LOCKING, ACE_SYNCH_MUTEX>; +typedef ACE_Singleton<ACE_TIMEPROBE_WITH_LOCKING, ACE_SYNCH_MUTEX> + ACE_TIMEPROBE_SINGLETON; # endif /* ACE_TSS_TIMEPROBES */ -ACE_SINGLETON_DECLARATION (ACE_TIMEPROBE_SINGLETON); +ACE_SINGLETON_DECLARATION (ACE_TIMEPROBE_SINGLETON_DEFINE); #endif /* ACE_COMPILE_TIMEPROBES */ |