summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-23 05:08:26 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-23 05:08:26 +0000
commit13fecb591de85ad80ff007a738835f2698f8bf69 (patch)
tree1e064839e3e7b0747077bf85fdb8b068977fd77a
parent0a4b8f7a6a14196b1c9623d118e4b933daf06dbf (diff)
downloadATCD-13fecb591de85ad80ff007a738835f2698f8bf69.tar.gz
added ACE_OS::gethrtime () support for Linux on Pentiums
-rw-r--r--ace/OS.cpp6
-rw-r--r--ace/config-linux-lxpthreads.h3
-rw-r--r--ace/config-linux-pthread.h3
-rw-r--r--ace/config-linux.h3
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