diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-27 03:43:21 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-27 03:43:21 +0000 |
commit | 39473874d7134d3e0a85592170a85d06db00d4b4 (patch) | |
tree | db428d2ef05f1f2e03fe0e8467dcab6661fbaf52 /ace/Timeprobe.cpp | |
parent | 5553a5d92ba45c8e562d98d4e943f17e5bfdd501 (diff) | |
download | ATCD-39473874d7134d3e0a85592170a85d06db00d4b4.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Timeprobe.cpp')
-rw-r--r-- | ace/Timeprobe.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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_LOCK>::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 <class ACE_LOCK> @@ -48,6 +59,14 @@ ACE_Timeprobe<ACE_LOCK>::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 <class ACE_LOCK> void |