summaryrefslogtreecommitdiff
path: root/ace/Timeprobe.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-01 18:03:22 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-01 18:03:22 +0000
commit4cb93b09f13a4ad3da30b2c5c859c7c3896b38bc (patch)
treef4079bfcf384449dd0ee5311042080a570850a90 /ace/Timeprobe.cpp
parent72505d0d6f6ba5e03274b9f865e4a3f2b283c7a4 (diff)
downloadATCD-4cb93b09f13a4ad3da30b2c5c859c7c3896b38bc.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Timeprobe.cpp')
-rw-r--r--ace/Timeprobe.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/ace/Timeprobe.cpp b/ace/Timeprobe.cpp
index e629109343b..8ce9286ac0c 100644
--- a/ace/Timeprobe.cpp
+++ b/ace/Timeprobe.cpp
@@ -14,17 +14,13 @@
#include "ace/High_Res_Timer.h"
template <class ACE_LOCK>
-ACE_Timeprobe<ACE_LOCK>::ACE_Timeprobe (u_long size,
- ACE_Allocator *alloc)
+ACE_Timeprobe<ACE_LOCK>::ACE_Timeprobe (u_long size)
: timeprobes_ (0),
- allocator_ (alloc != 0 ? alloc : ACE_Allocator::instance ()),
lock_ (),
max_size_ (size),
current_size_ (0)
{
- ACE_NEW_MALLOC (this->timeprobes_,
- (ACE_timeprobe_t *) this->allocator_->malloc ((sizeof (ACE_timeprobe_t)) * this->max_size_),
- ACE_timeprobe_t[this->max_size_]);
+ this->timeprobes_ = new ACE_timeprobe_t[this->max_size_];
#ifdef VXWORKS
if (sysProcNumGet () == 0)
@@ -41,10 +37,7 @@ ACE_Timeprobe<ACE_LOCK>::ACE_Timeprobe (u_long size,
template <class ACE_LOCK>
ACE_Timeprobe<ACE_LOCK>::~ACE_Timeprobe (void)
{
- for (u_long i = 0; i < this->max_size_; i++)
- this->timeprobes_[i].ACE_timeprobe_t::~ACE_timeprobe_t ();
-
- this->allocator_->free (this->timeprobes_);
+ delete this->timeprobes_;
}
template <class ACE_LOCK> void