summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuangming <huangminghuang@users.noreply.github.com>2003-11-27 00:27:57 +0000
committerhuangming <huangminghuang@users.noreply.github.com>2003-11-27 00:27:57 +0000
commit93097e4c6a56a3088584542b3b9ea31131e61ef4 (patch)
tree22cfc390be9b6d9a4df2907e8be6f5713d3473aa
parent307f3ca850c3cd9dc0cfe7760b4ad399dd809b0f (diff)
downloadATCD-93097e4c6a56a3088584542b3b9ea31131e61ef4.tar.gz
*** empty log message ***
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp3
2 files changed, 14 insertions, 3 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp
index a27471dace2..d0198de6996 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp
@@ -46,10 +46,16 @@ namespace {
FTRTEC_TRACE("obtain_push_consumer_and_connect");
FTRTEC_LOGTIME("obtain_push_consumer_and_connect");
+ {
+ TAO_FTRTEC::TimeLogger logger("Request_Context_Repository().set_object_id()");
Request_Context_Repository().set_object_id(oid ACE_ENV_ARG_PARAMETER);
-
- RtecEventChannelAdmin::ProxyPushConsumer_var consumer =
+ }
+ RtecEventChannelAdmin::ProxyPushConsumer_var consumer;
+ {
+ TAO_FTRTEC::TimeLogger logger("ec->supplier_admin()->obtain()");
+ consumer =
ec->supplier_admin()->obtain(ACE_ENV_SINGLE_ARG_PARAMETER);
+ }
ACE_CHECK;
@@ -57,9 +63,13 @@ namespace {
&TAO_FTEC_SupplierAdmin::disconnect,
consumer.in());
+ {
+ TAO_FTRTEC::TimeLogger logger("consumer->connect_push_supplier()");
consumer->connect_push_supplier(push_supplier, qos
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
+ }
+
guard.Dismiss();
}
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp
index 8354004808c..e912ac6b04e 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp
@@ -34,7 +34,8 @@ namespace TAO_FTRTEC {
TimeLogger::~TimeLogger()
{
ACE_Time_Value result = ACE_OS::gettimeofday () - start_time_;
- int n = ACE_OS::snprintf(now, buffer-now, "%s %d\n", msg_, result.sec()*1000000+result.usec());
+ int time_in_usec = result.sec()*1000000+result.usec();
+ int n = ACE_OS::snprintf(now, buffer-now+sizeof(buffer), "%s %d\n", msg_, time_in_usec);
now+=n;
}