From 39473874d7134d3e0a85592170a85d06db00d4b4 Mon Sep 17 00:00:00 2001 From: irfan Date: Wed, 27 May 1998 03:43:21 +0000 Subject: *** empty log message *** --- ace/Timeprobe.cpp | 19 +++++++++++++++++++ ace/Timeprobe.h | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/ace/Timeprobe.cpp b/ace/Timeprobe.cpp index f14e3afb0cc..ab872c4eea6 100644 --- a/ace/Timeprobe.cpp +++ b/ace/Timeprobe.cpp @@ -24,6 +24,17 @@ ACE_Timeprobe::ACE_Timeprobe (u_long size, { void *space = this->allocator_->malloc ((sizeof(timeprobe_t)) * this->max_size_); this->timeprobes_ = new ((timeprobe_t *) space) timeprobe_t[this->max_size_]; + +#ifdef VXWORKS + if (sysProcNumGet () == 0) + { + this->current_slot_vme_address_ = (u_int *) 0xDa010000; + } + else + { + this->current_slot_vme_address_ = (u_int *) 0xD8010000; + } +#endif // VXWORKS } template @@ -48,6 +59,14 @@ ACE_Timeprobe::timeprobe (u_long event) this->timeprobes_[this->current_size_].thread_ = ACE_OS::thr_self (); this->current_size_++; + +#if defined (VMETRO_TIME_TEST) && (VXWORKS) + + // If we are using the VMETRO board to get time samples, then write + // to the other boards VME address. + *this->current_slot_vme_address_ = event; + +#endif /* VMETRO_TIME_TEST && VXWORKS */ } template void diff --git a/ace/Timeprobe.h b/ace/Timeprobe.h index dd3ddb1bb8a..7babb4468fb 100644 --- a/ace/Timeprobe.h +++ b/ace/Timeprobe.h @@ -107,6 +107,10 @@ protected: EVENT_DESCRIPTIONS sorted_event_descriptions_; // Sorted Event Descriptions + u_int *current_slot_vme_address_; + // Added sections below here to make compatible with the VMETRO + // board test. + ACE_Timeprobe (const ACE_Timeprobe &); // Not implemented. -- cgit v1.2.1