diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-23 05:08:26 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-23 05:08:26 +0000 |
commit | 7a9e2a6e37c46248428d593738ca3b71d2d9476b (patch) | |
tree | 1e064839e3e7b0747077bf85fdb8b068977fd77a | |
parent | c094573513b6a2305c4538edeadd7b3e95061669 (diff) | |
download | ATCD-7a9e2a6e37c46248428d593738ca3b71d2d9476b.tar.gz |
added ACE_OS::gethrtime () support for Linux on Pentiums
-rw-r--r-- | ace/OS.cpp | 6 | ||||
-rw-r--r-- | ace/config-linux-lxpthreads.h | 3 | ||||
-rw-r--r-- | ace/config-linux-pthread.h | 3 | ||||
-rw-r--r-- | ace/config-linux.h | 3 |
4 files changed, 15 insertions, 0 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp index 9ab48a4cf36..dffde548e8d 100644 --- a/ace/OS.cpp +++ b/ace/OS.cpp @@ -294,6 +294,12 @@ ACE_Countdown_Time::~ACE_Countdown_Time (void) this->stop (); } +#if defined (ACE_HAS_PENTIUM) && defined (linux) + // see comments in OS.i in ACE_OS::gethrtime () definition + unsigned long ACE_OS_gethrtime_least; + unsigned long ACE_OS_gethrtime_most; +#endif /* ACE_HAS_PENTIUM && linux */ + #if defined(ACE_MT_SAFE) && defined(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS) int ACE_OS::netdb_mutex_inited_ = 0; diff --git a/ace/config-linux-lxpthreads.h b/ace/config-linux-lxpthreads.h index cde763730dd..db436dd630b 100644 --- a/ace/config-linux-lxpthreads.h +++ b/ace/config-linux-lxpthreads.h @@ -28,6 +28,9 @@ #if !defined (ACE_CONFIG_H) #define ACE_CONFIG_H +#define ACE_HAS_PENTIUM +#define ACE_HAS_LONGLONG + // Fixes a problem with new versions of Linux... #ifndef msg_accrights #undef msg_control diff --git a/ace/config-linux-pthread.h b/ace/config-linux-pthread.h index f51e803689d..9de25cd9a0e 100644 --- a/ace/config-linux-pthread.h +++ b/ace/config-linux-pthread.h @@ -7,6 +7,9 @@ #if !defined (ACE_CONFIG_H) #define ACE_CONFIG_H +#define ACE_HAS_PENTIUM +#define ACE_HAS_LONGLONG + // Fixes a problem with new versions of Linux... #ifndef msg_accrights #undef msg_control diff --git a/ace/config-linux.h b/ace/config-linux.h index 93a20d4dee3..583fd14cd4a 100644 --- a/ace/config-linux.h +++ b/ace/config-linux.h @@ -10,6 +10,9 @@ // Do we really need this #define here? #define LINUX 1.2.10 +#define ACE_HAS_PENTIUM +#define ACE_HAS_LONGLONG + // Fixes a problem with new versions of Linux... #ifndef msg_accrights #undef msg_control |