summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-09-04 18:57:01 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-09-04 18:57:01 +0000
commitd1a6505e7e0405a8f1b31ed103bd3dcce76c4def (patch)
treefeb68e5cb6eba81050dae66f15db467f03bccd57
parent138b8bf98780fa05743438c9faaf2fedd1283340 (diff)
downloadATCD-d1a6505e7e0405a8f1b31ed103bd3dcce76c4def.tar.gz
Added new accessors.
-rw-r--r--TAO/threadpool-changes9
-rw-r--r--ace/Sample_History.cpp12
-rw-r--r--ace/Sample_History.h6
3 files changed, 24 insertions, 3 deletions
diff --git a/TAO/threadpool-changes b/TAO/threadpool-changes
index 79dff263f58..14c49789a78 100644
--- a/TAO/threadpool-changes
+++ b/TAO/threadpool-changes
@@ -1169,14 +1169,17 @@ Fri Aug 24 18:08:37 2001 Irfan Pyarali <irfan@cs.wustl.edu>
* docs/Options.html: Added documentation for new
-ORBScopePolicy option.
- * ACE_ROOT/ace/OS.h: THR_SCOPE_PROCESS and THR_SCOPE_SYSTEM
+ * $ACE_ROOT/ace/OS.h: THR_SCOPE_PROCESS and THR_SCOPE_SYSTEM
were not defined for NT. Added them.
- * ACE_ROOT/ace/OS.cpp: LinuxThreads do not have support for
+ * $ACE_ROOT/ace/OS.cpp: LinuxThreads do not have support for
PTHREAD_SCOPE_PROCESS; only PTHREAD_SCOPE_SYSTEM is
supported. Therefore, PTHREAD_SCOPE_PROCESS is ignored when
setting the thread scheduling scope.
- * ACE_ROOT/bin/auto_run_tests.lst: Added new RTCORBA tests.
+ * $ACE_ROOT/ace/Sample_History.cpp: Added accessors for
+ <sample_count> and <max_samples>.
+
+ * $ACE_ROOT/bin/auto_run_tests.lst: Added new RTCORBA tests.
Removed Minimum CORBA dependency on these tests.
diff --git a/ace/Sample_History.cpp b/ace/Sample_History.cpp
index df21786cf71..f6c08c55afe 100644
--- a/ace/Sample_History.cpp
+++ b/ace/Sample_History.cpp
@@ -22,6 +22,18 @@ ACE_Sample_History::~ACE_Sample_History (void)
delete[] this->samples_;
}
+size_t
+ACE_Sample_History::max_samples (void) const
+{
+ return this->max_samples_;
+}
+
+size_t
+ACE_Sample_History::sample_count (void) const
+{
+ return this->sample_count_;
+}
+
void
ACE_Sample_History::dump_samples (const ACE_TCHAR *msg,
ACE_UINT32 scale_factor) const
diff --git a/ace/Sample_History.h b/ace/Sample_History.h
index 2b171145269..e489831c489 100644
--- a/ace/Sample_History.h
+++ b/ace/Sample_History.h
@@ -47,6 +47,12 @@ public:
*/
int sample (ACE_UINT64 value);
+ /// Returns the maximum number of samples
+ size_t max_samples (void) const;
+
+ /// Returns the current number of samples
+ size_t sample_count (void) const;
+
/// Dump all the samples
/**
* Prints out all the samples, using @param msg as a prefix for each